home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH08 / A08115.TXT < prev    next >
Encoding:
Text File  |  1993-11-24  |  307 b   |  6 lines

  1. In object-oriented design, the term "has-a" applies to classes
  2. that are composed of objects of other classes.  In contrast, the
  3. term "is-a" applies to the relationship of public inheritance.
  4. Here, a Drink_Machine object has a Status object "OK", a Selection
  5. object "menu", and a Change object "coins".
  6.