/** *
 *  ZooBuilding.java
 *
 *  Revisions: 1.0 Sep. 26, 2002
 *               Created the ZooBuilding class
 *             1.1 Sep. 28, 2002
 *				 Finished, Compiled, Commented
 *
 *  
* * Collaboration Statement: * I worked on the homework assignment alone, using only * course materials. * * Created with JCreatorLE, some indents are off when viewed through notepad * or EMACS * * @author Jose Manuel Caban * @version Version 1.1, Sep. 28, 2002 */ public abstract class ZooBuilding { /** *theAnimals list meant for storing *the animals of the building */ private LinkedList theAnimals; /** *holds the name of the building */ private String name; //////////////// //Constructors// //////////////// /* *Constructor for ZooBuilding *@param name, the name of the zoobuilding */ public ZooBuilding(String name){ this.name = name; theAnimals = new LinkedList(); } ///////////// //Accessors// ///////////// /** *@return the List of Animals */ public LinkedList getTheAnimals(){ return theAnimals; } /** *@return the value of name */ public String getName(){ return name; } /** *@return number of Animals in the Zoo */ public int getHungryAnimals(){ int total=0; Animal aTemp; for(int i=0; i
* @param args a String array of command line arguments. */ public static void main(String[] args) { }// end of main(String[] args) }// end of class ZooBuilding