Self-Review Exercises (Sections G.6G.13)

  1. G.3 Fill in the blanks in each of the following statements:

    1. If a class contains at least one abstract method, it’s a(n)            class.

    2. Classes from which objects can be instantiated are called            classes.

    3.            involves using a superclass variable to invoke methods on superclass and subclass objects, enabling you to “program in the general.”

    4. Methods that are not interface methods and that do not provide implementations must be declared using keyword           .

    5. Casting a reference stored in a superclass variable to a subclass type is called           .

  2. G.4 State whether each of the statements that follows is true or false. If false, explain why.

    1. All methods in an abstract class ...

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.