In java create a class named horse that contains data


In Java Create a class named Horse that contains data fields

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 Horse.java, RaceHorse.java, and DemoHorse.java

 

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: In java create a class named horse that contains data
Reference No:- TGS01030378

Expected delivery within 24 Hours