CS 101 Lecture 26 - Inheritance

Class Examples:

  1. Let's create a general "FallingObject" class:

    Click on FallingObjects to show the example.

  2. This version has falling leaves, hail, and tomatoes to demonstrate overriding a method from a superclass:

    Click on FallingTomatoes to show the example.