本文目录一览:
代码如下
abstract class Dongwu {
void chi(){
System.out.println("吃");
}
}
interface Tiao{
void tiao();
}
interface Suan{
void suan();
}
class Mao extends Dongwu implements Tiao{
public void tiao() {
System.out.println("猫册丛会跳芦烂高");
}
}
class Gou extends Dongwu implements Suan{
public void suan() {
System.out.println("狗会算数");
}
}
如果有帮陪姿漏助到你,请点击采纳