Animal(动物)类
/**
* 2021.4.20
* 第七章java作业
* 设计鸟、鱼类,都继承自动物类
*/
public class Animal {
private int age = 0;//年龄
public Animal() {
}
public Animal(int age) {
this.age = age;
}
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
public void info(){