Question: Create an abstract class called Cattle that extends Livestock This class must have the following private data breed (a string) classification (a string) (The only
Create an abstract class called Cattle that extends Livestock This class must have the following private data breed (a string) classification (a string) (The only valid values are dairy and beef. You must error the classification.) This class must have the following methods default constructor constructor with parameters for the data Create appropriate accessor and mutator methods to return and modify the private data. setCattle with parameters for the data toString Note: Do not implement the abstract method productionValue from the Livestock class.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
