摘要:
今天把java编程思想的IO系统重新温习了一下,对装饰者模式有了更加深刻的理解。下面以我的理解重新构思了程序,直接上codeHuman(人类)-我们需要装饰的对象 1 /** 2 * 3 */ 4 package com.decorate; 5 6 /** 7 * @author Administrator 8 * 9 */10 public interface Human {11 12 /**13 * 14 */15 public void printDescription();16 }由Human派生出来的两个被装饰类Man(男人)和Woma... 阅读全文
posted @ 2012-03-29 20:44
lets.run
阅读(146)
评论(0)
推荐(0)

浙公网安备 33010602011771号