Complete the object classes. Each object class should have properties, constructor(s), getters(accessor methods), setters(mutator methods) and a toString method. Properties need to be flagged as "private" /* * Super class: Dogs. Subclass: Working dogs */ package inheritance; public class Dogs { private String name = null; private int age = 0; private boolean pedigree = false; Dogs(String n, int a, boolean p) { name = n; age = a; pedigree = p; } public String getName() { return name; } public void setName(String name) { this.name = name; } public int getAge() { return age; } public void setAge(int age) { this.age = age; } public boolean isPedigree() { return pedigree; } public void setPedigree(boolean pedigree) { this.pedigree = pedigree; } public String toString() { return name + "\t" + age + "\t" + pedigree; } } =============================================================== /* * Extends the dog class */ package inheritance; public class WorkingDog extends Dogs{ // Working dog has an additional field private String trainer = null; // Sub-class constructor uses the super-class constructor just adding the // extra field WorkingDog(String n, int a, boolean p, String t) { super(n,a,p); trainer = t; } // end constructor public String getTrainer() { return trainer; } public void setTrainer(String trainer) { this.trainer = trainer; } public String toString() { // returns Dog toString with the extra field return super.toString() + "\t" + trainer; } } ================================================================================