home *** CD-ROM | disk | FTP | other *** search
- Objects of these two classes could represent lines of customers in
- a store. In both, the data member "serving" is the person being
- served. The member "waiting" refers to the line of people waiting
- to be served. The version on the right is not valid because the
- definition of the type Lineup is not complete when the Lineup
- object "waiting" is declared. The version on the left is valid
- because the compiler needs only the declaration of the type Lineup
- before constructing the pointer "waiting".
-