previous
|
start
|
next
Nested Classes and Name Spaces
The definition of the member functions requires references to both the outer and inner classes.
List::Iterator::Iterator() { ... } string List::Iterator::get() const { ... }
Note that the name of constructor is just
Iterator
.
In general, use nested classes for just one reason: to place the name of a class inside the scope of another class.
previous
|
start
|
next