interface Zhangsan {
void play();
}
interface Lisi{
void play();
}
interface Wangwu extends Zhangwu, Lisi{
Man man= new Man("good!");
}
class Man implements Wangwu{
private String name;
public String getName() {
return name;
}
public Man(String name) {
this.name = name;
}
public void play() {
man = new Man("Football");
System.out.println(man.getName());
}
}
不知道哪里有错误啊,感觉哪里都没有错啊。能解释解释吗,谢谢了。
|
|