摘要: S = Single Responsibility Principle单一职责原则O = Opened Closed Principle 开放闭合原则L = Liscov Substitution Principle Liscov替换原则I = Interface Segregation Princ... 阅读全文
posted @ 2014-04-25 11:32 大刀客 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 熟知的几个原则1.static字段初始化先于static构造函数2.static字段按顺序初始化3.static字段和static构造函数只执行一次public class Foo { public static Foo Instance = new Foo(); ... 阅读全文
posted @ 2014-04-25 11:21 大刀客 阅读(379) 评论(1) 推荐(0) 编辑