Question: need help, Java 3. Define class Cat which is inherited from Animal: Data fields: coat: int // valid values are: 0: short, 1: medium, 2:
need help, Java

3. Define class Cat which is inherited from Animal: Data fields: coat: int // valid values are: 0: short, 1: medium, 2: long. Methods: Constructor(s) All setter/getter methods to get or set a data field/member. getClass (): String // override method defined in Animal. Return Mammal getSpecies(): String // override method defined in Animal. Return Cat getCoat(): String // return text message of coat toString(): String // return information of a cat
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
