Question: JAVA code Specifications: Classes and Inheritance You are to pick your own theme for a new Parent class. You can pick from one of the

JAVA code Specifications:

Classes and Inheritance

You are to pick your own theme for a new Parent class. You can pick from one of the following:

Person

Automobile

Animal

If you choose Person, you will create a subclass of Person called Student.

If you choose Automobile, you will create a subclass of Automobile called RaceCar

If you choose Animal, you will create a subclass of Animal called Horse

Once you pick your theme, you must use the HAS A question to determine the fields that you are going to include in your classes.

For example, an Alarm Clock HAS A:

Set Hours Button Time

Set Minutes Button Time

Set Hours Button Alarm

Set Minutes Button Alarm

Alarm On-Off Button

Snooze Button

You will WRITE JAVA code to create the classes from above. In the classes you are creating you will include at least three fields or attributes (See sample alarm clock above).

You will have overloaded methods, and overridden methods. You will label each. You will have a TestClass that creates at least 3 objects of each class.

Your parent and child classes need to have all necessary and required methods.

You will test your work.

YOU CANNOT:

Use global variables, the word goto, the break command outside a case statement

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!