Question: Java question Public class Pet { public String name; public boolean indoor; // // // // } public class Goat extends Pet { public int
Java question

Public class Pet { public String name; public boolean indoor; // // // // } public class Goat extends Pet { public int age; public String diet; public Goat (String name, boolean indoor) { super (name, indoor); } } Write the constructor of the Pet class as indicated by the comment lines in the answer box below
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
