摘要: 设计模式一:适配器模式 现在我们有两个类Dog和Cat,这两个类都有发出声音的功能 public class Cat { public void catCall() { System.out.println("喵!喵!喵!"); } } public class Dog { public void 阅读全文
posted @ 2018-01-21 22:01 Stark_Tan 阅读(337) 评论(0) 推荐(0) 编辑