/** * * @author gtowell * File: SPCA.java * Desc: a very simple model of an SPCA facility */ public class SPCA { /** * Holds all the animals in the facility */ Animal animals[]; /** * The number of animals in the facility */ int aCount; /** * Constructor. Just initializes internal variables. */ public SPCA() { animals = new Animal[100]; aCount = 0; } /** * Take in a cat * @param c the cat */ public void addCat(Cat c) { animals[aCount]=c; aCount++; } /** * Take in a dog * @param d the dog */ public void addDog(Dog d) { animals[aCount] = d; aCount++; } /** * Print a list of the animals in the SPCA */ public void listAnimals() { for (int i=0; i