O'Reilly logo

Java™ for Programmers: Deitel by Harvey M. Deitel - Deitel & Associates, Inc., Paul J. Deitel - Deitel & Associates, Inc.

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

9. Object-Oriented Programming: Inheritance

Objectives

In this chapter you’ll learn:

• How inheritance promotes software reusability.

• The notions of superclasses and subclasses.

• To use keyword extends to create a class that inherits attributes and behaviors from another class.

• To use access modifier protected to give subclass methods access to superclass members.

• To access superclass members with super.

• How constructors are used in inheritance hierarchies.

• The methods of class Object, the direct or indirect superclass of all classes in Java.

Say not you know another entirely, till you have divided an inheritance with him.

Johann Kasper Lavater

This method is to define as the number of a class the class of all classes similar to ...

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