Question: ***IN JAVA*** Develop a class Horse.java. The class should have the private variables: name, color, and birthYear. The class should have a default constructor and

 ***IN JAVA*** Develop a class Horse.java. The class should have the

***IN JAVA*** Develop a class Horse.java. The class should have the private variables: name, color, and birthYear. The class should have a default constructor and a non-default constructor which accepts values for name, color, and birthYear You should have the appropriate getters and setters. The setter method for birthYear should not accept a value 2018 (it will trap the user until a valid amount is entered by the user). The class should have a toString and an equals method Develop a class RaceHorse.java which is a child of the class Horse.java. The class should have the private variables: races, and wins. The class should have a default constructor and a non-default constructor which accepts values for races, and wins. You should have the appropriate getters and setters. The setter method for races should not accept a value

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!