Question: Hello Class, In this activity, you will be writing a Java application Program for the following problem: PE _ 1 0 _ 0 _ Inheritance
Hello Class,
In this activity, you will be writing a Java application Program for the following problem:
PEInheritanceDemo Specifications:
Objects are foundations for any objectoriented programming. Objects according to the context of the underlying application are grouped into classes. A class is a collection of related objects. The relevancy is contextsensitive and it depends on the underlying application. An object is an instance of a class.
Write a Java application program that defines two classes and then tests these two classes. The specifications are as follows:
Create a base super class named Horse with three attributes: name, color, and age. Each attribute must have its own getter Accessor and setter Mutator methods. The file name is: PEHorse##LastFirst. Replace, ## with your TWODIGIT roster ID Last and First with your last name and first name, correspondingly.
Create a derived subclass class named RaceHorse, with an additional attribute that holds the number of races in which the object horse has completed. This distinct attribute must have its own getter and setter methods. The file name is: PERaceHorse##LastFirst. Replace, ## with your TWODIGIT roster ID Last and First with your last name and first name, correspondingly.
Write an application that asks the user for proper attribute values to demonstrates using objects of each class, Horse and RaceHorse. The file name is: PEDemoHorse##LastFirst. Replace, ## with your TWODIGIT roster ID Last and First with your last name and first name, correspondingly.
Your program should prompt the user with appropriatedescriptive messages for entering data.
Your program output should clearly prints the objects name with all its attributes' value.
Use the following Top Block Comments TBC at the Top of your program:
Program Name: PEInheirtanceDemo##LastFirst
Program Description: A brief explanation about the program
Course & Class: CS V Beginning Java CRN #####; Fall
Programmer: Your full name ##
Follow the guidelines of "Good Programming Practices such as descriptive variable names, proper data types, appropriate use of the language elements, effective logic to solve the problem, PLENTY of comments throughout your program, consistent formatting to make your code easily to read and understand.
Please ensure to use plenty of comments throughout your program. A good program is FULLY Documented.
Your program sample runs, prompt and output messages should look like the following:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
