Self-Review Exercises
9.1 Fill in the blanks in each of the following statements:
a) ______ is a form of software reusability in which new classes acquire the members of existing classes and embellish those classes with new capabilities.
b) A superclass’s ______ members can be accessed in the superclass declaration and in subclass declarations.
c) In a(n) ______ relationship, an object of a subclass can also be treated as an object of its superclass.
d) In a(n) ______ relationship, a class object has references to objects of other classes as members.
e) In single inheritance, a class exists in a(n) ______ relationship with its subclasses.
f) A superclass’s ______ members are accessible anywhere that the program has a reference to an object of ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access