摘要:
S = Single Responsibility Principle单一职责原则O = Opened Closed Principle 开放闭合原则L = Liscov Substitution Principle Liscov替换原则I = Interface Segregation Princ... 阅读全文
摘要:
熟知的几个原则1.static字段初始化先于static构造函数2.static字段按顺序初始化3.static字段和static构造函数只执行一次public class Foo { public static Foo Instance = new Foo(); ... 阅读全文