interface IFly{
void fly();
}
interface ILanguage{
void speak();
}
class Bird extends Animal{}
class WideGoose implements IFly{}
class Penguin extends Bird{
private Climate climate;//在企鹅Penguin中,引用到气候Climate对象
}
class WideGooseAggregate{
private WideGoose[] arrayWideGoose;//在雁群WideGooseAggregate类中,有大雁数组对象arrayWideGoose
}
class Bird {
private Wing wing;
public Bird(){
wing = new Wing();
}
}
abstract class Animal {
public void Metabolism(Oxygen oxygen, Water water) {
}
}