Course Description
Examine the methods of polymorphism in Java using inheritance, with subclasses and superclasses, and the use of abstract classes.
Learning Objectives
Java SE 11: Inheritance, Polymorphism, and Abstraction
- define inheritance in the context of a Java class hierarchy
- create a subclass
- override a method in the superclass
- use the super keyword to reference the superclass
- define polymorphism
- cast a superclass reference to the subclass type
- use the instanceof operator to test an object's type
- explain the difference between abstract and non-abstract classes
- create a class hierarchy by extending an abstract class
- override a method in the superclass