/**
 * Write a description of class Testbed here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Testbed
{
    public static void test ()
    {
        Animal fred = new Bird (350, "plants");
        
//        System.out.println ("Fred weighs " + fred.getWeight() +
//            " pounds and likes to eat " + fred.getFood() + ".");
        System.out.println ("Description of Fred: " + fred.toString());
            
        Animal dolores = new Fish(.03, "algae");
        System.out.println ("And Dolores: " + dolores);
        
        Fish joe = new Fish(.04, "snails");
        System.out.println ("Joe: " + joe.toString());
        
        dolores = joe;
        System.out.println ("Dolores has changed:" + dolores.toString());
        
        // joe = fred;   DOESN'T COMPILE!
        // System.out.println ("Joe has changed too:" + joe.toString());
        
        System.out.println ("Can joe swim? " + joe.canSwim());
        System.out.println ("Can fred swim? " + fred.canSwim());
        System.out.println ("Can dolores fly? " + dolores.canFly());
        
        Animal william = new Wombat(15);
        System.out.println ("William: " + william);
        william.climb();
        
        // Animal generic = new Animal (47, "Martians");
        Animal pete = new Penguin (27);
        System.out.println ("Pete: " + pete.toString());
    }
    }
