home *** CD-ROM | disk | FTP | other *** search
- Here, the definition of the structure DMY is nested inside the
- definition of the class Date. The structure is in the scope of
- the Date class and therefore the name "DMY" does not appear in the
- global name space. One name space holds all of the global
- identifiers in a program. Nesting classes is one technique for
- reducing entries in the name space. In addition, a class name can
- be reused for classes nested in different enclosing class scopes.
-