CS 160



Today's lecture was on Chapter 11, Inheritance.
There are four files for this lecture.
  1. The Driver, this file creates objects of the classes.
  2. The Auto class is the super class.
  3. The Car class inherits from the Auto class, and
  4. 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