Wyo Java Ch11Proj1

Design your own set of classes that illustrate inheritance. Create an abstract class that has one or more properties, 1 or more abstract methods, and 1 or more concrete methods. Create another class that is a child class of your abstract class. This class must override and implement the abstract methods of the abstract class. It must also have one or more of its own properties and one or more of its own, non-inherited methods. Finally, create a third class that is a child to the concrete class mentioned above. This class must override one or more of the methods in its parent class. The concrete classes must have suitable constructors. Use this() an super() where possible. You may add as many modifier and accessor methods as you need. Include a toString method in the two concrete classes.

Write a client class named Ch11Proj1. In this client class, instantiate an object from each of the two concrete classes and write code that makes use of at least 4 of the methods included in the various classes.

Your program must follow the class Coding Standards. Save all of the files associated with this assignment to a folder named Ch11Proj1 in the appropriate network folder.

Preconditions:

    • None

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

    1. An inheritance hierarchy diagram as illustrated on p. 435
    2. The source code for the Ch11Proj1 class.
    3. The source code for the abstract class.
    4. The source code for the concrete class that is a child of the abstract class.
    5. The source code for the concrete class that is a child of the other concrete class.