Today's lecture was on Chapter 11, Inheritance.
There are four files for this lecture.
- The Driver, this file creates objects of the classes.
- The Auto class is the super class.
- The Car class inherits from the Auto class, and
- The Truck class inherits from the Auto Class.
- Some of the topics covered in the code were creating a method final.
- Private, public, and protected methods and variables
- Overwriting a method from the base class
- super
- and other general rules of inheritance
|