Inheritance

Design your own set of classes that illustrate inheritance. Create a parent class that has two or more properties and two or more methods. Create another class that is a child class of your parent class. It must also have two additional properties of its own and two or more of its own, non-inherited methods. The child class must override one of the methods in its parent class. The classes must have suitable constructors. You must add modifier and accessor methods where appropriate.

Write a main function that instantiates an object from each of the two classes and write code that makes use of at least 4 of the various methods included in the various classes.

Your program must follow the class Coding Standards. Name your project Inheritance.

Preconditions:

    • None

You must hand in the following on separate pages stapled in this specified order:

    1. The source code for all the classes.
    2. The screen capture of your actual form window at runtime (black text on white background).