O'Reilly logo

Android How to Program by Paul Deitel, Abbey Deitel, Harvey Deitel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

G. Object-Oriented Programming: Inheritance and Polymorphism

Objectives

In this appendix you’ll:

• Learn how inheritance promotes software resuse.

• Understand the relationships between superclasses and subclasses.

• Use keyword extends to effect inheritance.

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

• Reference superclass members with super.

• Learn the methods of class Object.

• Learn the concept of polymorphism.

• Use overridden methods to effect polymorphism.

• Distinguish between abstract and concrete classes.

• Declare abstract methods to create abstract classes.

• Learn how polymorphism makes systems extensible and maintainable.

• Determine an object’s type at execution time.

• Declare and implement interfaces. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required