public class Robin extends Bird
{
  public Robin()
  {
    super("Robin", 0.5);
  }

  public void fly()
  {
    System.out.println("The " + this.commonName + " flies away.");
  }

  public void eat()
  {
    System.out.println("This " + this.commonName + " munches an earthworm.");
  }

  public static void main(String args[])
  {
    Robin r = new Robin();
    System.out.println(r);
    double weight = r.getAveWeight();
    String name = r.getName();
    System.out.println(name);
    System.out.println("It weighs about " + weight);
    r.eat();
    r.fly();
    r.speak();
  }
}
