2019年7月21日

摘要: 转载自:https://www.cnblogs.com/jiangbei/p/6910790.html 1) Open-Close Principle(OCP),开-闭原则, 讲的是设计要对扩展有好的支持,而对修改要严格限制。这是最重要也是最为抽象的原则,基本上我们所说的Reusable Softw 阅读全文
posted @ 2019-07-21 18:20 不胖 阅读(201) 评论(0) 推荐(0) 编辑
 
摘要: package com.day10; public interface Cpu { public String Pingpai(); public String ZhuPin(); } package com.day10; public class CpuType implements Cpu { public String Pingpai(){ ... 阅读全文
posted @ 2019-07-21 18:17 不胖 阅读(209) 评论(0) 推荐(0) 编辑
 
摘要: package com.day09; public abstract class HandSet { private String brand; private String type; public HandSet(){} public HandSet(String brand,String type){ this.brand = brand... 阅读全文
posted @ 2019-07-21 17:26 不胖 阅读(112) 评论(0) 推荐(0) 编辑