Inheritance: Bare bones. Get something to run first. The text file Butch#2#false April#1#true Morgan#4#false Ratty#9#false Tut#2#true ================================================================ The UI class that will call the methods in the manager class /* * Super class: Dogs. Subclass: Working dogs */ package inheritance; public class DogsUI { public static void main(String[] args) { DogManager dm = new DogManager(); String text = dm.displayAll(); System.out.println("Hello Dogs"); System.out.println(text); } } ================================================================ The Manager class where we will place all our methods /* * Dog Manager with methods to create object arrays * This will include reading in the text file */ package inheritance; public class DogManager { // global variables including arrays private Dogs[] dogs = new Dogs[20]; private int size = 0; DogManager() { System.out.println("Dog Manager"); } public String displayAll() { return "Display All"; } } ================================================================== The Dog class - the super class /* * Super class: Dogs. Subclass: Working dogs */ package inheritance; public class Dogs { String name = "Dog"; int age = 0; boolean pedigree = false; public String toString() { return name + "\t" + age + "\t" + pedigree; } } ================================================================== The Working class - the sub class to Dog /* * Extends the dog class */ package inheritance; public class WorkingDog extends Dogs{ // Working dog has an additional field String trainer = "Nil"; public String toString() { // returns Dog toString with the extra field return super.toString() + "\t" + trainer; } } ==================================================================== OUTPUT THUS FAR run: Dog Manager Hello Dogs Display All BUILD SUCCESSFUL (total time: 0 seconds)