随笔分类 -  设计模式

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 南瓜饼 阅读(974) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示