First page Back Continue Last page Graphics
Nested Classes cont.
Member functions of the class containing the nested class can create and use objects of the nested class.
The outside world can use the nested class ONLY if the declaration of the nested class is in the public section. And, you must use the scope resolution operator ::.
Nesting a class does not create a class member, instead, it defines a type that is known just locally to the containing class.
Practice: nested.cpp, queuetp1.h, string1.h