G. Object-Oriented Programming: Inheritance and Polymorphism

Objectives

In this appendix you’ll:

Image Learn how inheritance promotes software resuse.

Image Understand the relationships between superclasses and subclasses.

Image Use keyword extends to effect inheritance.

Image Use protected to give subclass methods access to superclass members.

Reference superclass members ...

Get Android™ How to Program, Second Edition 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.