Self-Review Exercises

9.1Fill in the blanks in each of the following statements:
  1. _____ is a form of software reusability in which new classes acquire the members of existing classes and embellish those classes with new capabilities.

  2. A superclass’s _____ members can be accessed in the superclass declaration and in subclass declarations.

  3. In a(n) _____ relationship, an object of a subclass can also be treated as an object of its superclass.

  4. In a(n) _____ relationship, a class object has references to objects of other classes as members.

  5. In single inheritance, a class exists in a(n) _____ relationship with its subclasses.

  6. A superclass’s _____ members are accessible anywhere that the program has a reference to an object of that superclass or to an object ...

Get Java™ How to Program, Seventh Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.