Java
Create a class named Horse that contains data fields for thename, color, and birth year. Include get and set methods for thesefields. Next, create a subclass named RaceHorse, which contains anadditional field that holds the number of races in which the horsehas competed and additional methods to get and set the new field.Write an application that demonstrates using objects of each class.Save the files as Horse.java, RaceHorse.java, andDemoHorses.java.
Expert Answer
An answer will be send to you shortly. . . . .