previous | start | next

Nested Classes and Name Spaces (Syntax 17.5 : Nested Class Declaration)

Syntax 17.5 : Nested Class Declaration

class Outer_class_name
{   ...
   class Nested_class_name
   {      ...
   };   ...
}
Example:
class List
{
   ...
   class Iterator
   {
      ...
   };
};
Purpose: Define a class whose scope is contained in the scope of another class.


previous | start | next