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:
PE_10_0_Inheritance_Demo Specifications:
1. Objects are foundations for any object-oriented 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 context-sensitive and it depends on the underlying application. An object is an instance of a class.
2. Write a Java application program that defines two classes and then tests these two classes. The specifications are as follows:
1. 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: PE_10_0_Horse_\#\#_Last_First. Replace, \#\# with your TWO-DIGIT roster ID, Last and First with your last name and first name, correspondingly.
2. 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: PE_10_0_RaceHorse_\#\#_Last_First. Replace, \#\# with your TWO-DIGIT roster ID, Last and First with your last name and first name, correspondingly.
3. 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: PE_10_0_DemoHorse_\#\#_Last_First. Replace, \#\# with your TWO-DIGIT roster ID, Last and First with your last name and first name, correspondingly.
3. Your program should prompt the user with appropriate/descriptive messages for entering data.
1. Your program output should clearly prints the object/'s name with all its attributes' value.
4. Use the following Top Block Comments (TBC) at the Top of your program:
1.// Program Name: PE_10_0_Inheirtance_Demo_\#\#_Last_First
2./*
3.- Program Description: A brief explanation about the program
4.- Course \& Class: CS V40- Beginning Java - CRN \#\#\#\#\#; Fall 2024
5.- Programmer: Your full name (\#\#)
6.
7.-
5. Follow the guidelines of "Good Programming Practices \({}^{3}\)" 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.
6. Please ensure to use plenty of comments throughout your program. A good program is FULLY Documented.
7. Your program sample runs, prompt and output messages should look like the following:
Hello Class, In this activity, you will be

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 Programming Questions!