Self-Review Exercises (Sections G.1G.5)
-
G.1 Fill in the blanks in each of the following statements:
is a form of software reusability in which new classes acquire the members of existing classes and embellish those classes with new capabilities.
A superclass’s members can be accessed in the superclass declaration and in subclass declarations.
In a(n) relationship, an object of a subclass can also be treated as an object of its superclass.
In a(n) relationship, a class object has references to objects of other classes as members.
In single inheritance, a class exists in a(n) relationship with its subclasses.
A superclass’s members are accessible anywhere that the program has ...
Get Android How to Program, 3/e now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.