Answers to Self-Review Exercises (Sections G.6G.13)
-
abstract.
concrete.
Polymorphism.
abstract
.downcasting.
-
False. An abstract class can include methods with implementations and
abstract
methods.False. Trying to invoke a subclass-only method with a superclass variable is not allowed.
False. Only a concrete subclass must implement the method.
True.
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.