O'Reilly logo

C# for Java Developers by Adam Freeman, Allen Jones

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Members

Members are the programming elements and constructs that are contained in namespaces, classes, structs, and interfaces. Members are divided into three categories: functional, data, and type. Functional members are those that contain executable code, data members are constant or variable values, and type members are nested type declarations.

Member Types and Declaration Context

Table 5-11 contrasts the member types available in Java and C#. A Java developer will be familiar with many of the C# member types, but C# also adds some new ones. For the C# member types, we identify their valid declaration contexts.

Table 5-11. A Cross-Language Comparison of Member Types

  

C# Member Context

  

Java Member

C# Member

Namespace

Class

Struct

Interface

Functional ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required