9. Object-Oriented Programming: Inheritance


In this chapter you’ll:

Image Understand inheritance and how to use it to develop new classes based on existing classes.

Image Learn the notions of superclasses and subclasses and the relationship between them.

Image Use keyword extends to create a class that inherits attributes and behaviors from another class.

Use access modifier protected in a superclass to give subclass methods access to these superclass ...

Get Java® 9 for Programmers, Fourth Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.