摘要:
interface Subject{ //核心操作主题 public void get();//核心操作 } class RealSubject implements Subject{ @Override public void get() { System.out.println("取回钱款"); 阅读全文
摘要:
interface Fruit{ public void eat(); } class Apple implements Fruit{ @Override public void eat() { System.out.println("吃苹果"); } } class Cherry implemen 阅读全文
摘要:
interface USB{ //统一的接口 public void start(); public void stop(); } class Computert{ public void plugin(USB usb){ usb.start(); usb.stop(); } } class Fla 阅读全文