Classes
Tue, 03/30/2010 - 13:16 — o
- Classes contain
- Data members
- Function members
- A class can be nested in another class
- A non-nested class can be either
- internal (the default): class can be accessed only from the same assembly
- public: accessed by anyone (who references the assemble containing the class)
- A nested class can be either
- private (the default)
- public, protected, internal, or protected internal
- Class members are by default private, unless another access modifier is indicated (public, protected, internal, protected internal).