Aug 1, 2006
Post comments count0
Post likes count0

C# nested classes are like C++ nested classes, not Java inner classes

Raymond Chen

When you declare a class inside another class, the inner class still acts like a regular class. The nesting controls access and visibility, but not behavior. In other words, all the rules you learned about regular classes also apply to nested classes. The keyword in an instance methods of a class (nested or not) can be used to access members of...

Code