package cn.edu.bjut.chapter4; public class AnimalTester { public static void main(String[] args) { Dog dog = new Dog("小毛绒", 20); Pigeon pigeon = new Pigeon("捣蛋鬼", 0.5, 5); System.out.println(dog); System.out.println(pigeon); } }