java几种简单的设计模式
摘要:单例设计模式//单例public class Student { private Student(){} private static Student instance = new Student(); public Student getInstance() { return instance; }}组合设计模式//组合public class Coder { private Computer com; public Coder(Computer com) { this.com = com; }}public class ...
阅读全文
posted @ 2012-09-18 02:33