Java coding

in Java Create a class named Horse that contains data fields for the name, color, and birth year. Include get and set methods for these field. Next, create a subclass named RaceHorse, which contains and addtional field that holds the number of reaces in which the horse has competed and addtional methods to get and set the new field. Write an application that demonstrates using objects of each class. Save the files as,, and

Submit a Comment