摘要:
public class SingletonTest { private static volatile SingletonTest singletonTest; public static SingletonTest getInstance(){ if(singletonTest == null) 阅读全文
posted @ 2022-07-25 23:04
dronff
阅读(69)
评论(0)
推荐(0)
摘要:
开闭原则 开闭原则规定"软件中的对象(类,模块,函数等等)应该对于扩展是开放的,但是对于修改是封闭的" 抽象接口 public interface AbstractTheme { void printColor(); } public class RedTheme implements Abstra 阅读全文
posted @ 2022-07-25 20:08
dronff
阅读(35)
评论(0)
推荐(0)

浙公网安备 33010602011771号