package com.ljh;
abstract class phone {
public abstract void call();
public abstract void send();
}
public abstract class iphone extends phone{
public void call(){
System.out.println("通过键盘打电话");
}
public void send(){
System.out.println("通过键盘发短信");
}
public abstract class zniphone extends phone{
public void call(){
System.out.println("通过语音打电话");
}
public void send(){
System.out.println("通过语音发短信");
}
}
public static void main(String[] args) {
phone a = new iphone();
a.call();
}
}
工程小哥
望远
Developer_Zuck
Developer_Zuck
慕的地6079101
韩默思
天行者1037991
相关分类