Self-Review Exercises (Sections G.1G.5)

  1. G.1 Fill 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 ...

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.