Chapter 5
Inheritance. Superclasses and Subclasses.
Objectives:
After completing the chapter, you can:
- explain the following terms: inheritance, overriding, polymorphism;
- relate objects to one another;
- build strong relationships between objects in the code using superclasses and subclasses;
- use
super
keyword; - choose proper data types for objects and variables.
Topics
NB! Watch the video in youtube if you need the subtitles!
Alternative materials
- in English:
- H. Schildt. Java - The Complete Reference: Chapter 8
- Chapter 80
- in Estonian: here
- in Russian: Г. Шилдт. Java 8. Полное руководство: Chapter 8