// This is a zoo class where we have all of our animals
public class zoo {
public static void main(String args[]) {
Animal a1 = new Animal("Cat");
a1.setWeight(4);
Animal a2 = new Animal("Dog");
a2.setWeight(25);
// now we get into some polymorphism
Animal b1 = new Bear("Big Bear");
b1.setWeight(105);
System.out.printf("%s\t%s\t\n%s\t%s\n\n%s\t%s\t\n%s\t%s\n\n%s\t%s\t\n%s\t%s\n\n", "Animal 1 is a:",a1.getName(),"It weighs:",a1.getWeight() + " lbs.","Animal 2 is a:",a2.getName(),"It weighs:",a2.getWeight() + " lbs.","Animal 3 is a:",b1.getName(),"It weighs:",b1.getWeight() + " lbs.");
} // end method main
} // end class zoo