装饰者设计模式

这也是在java常用的一种设计模式

  在原有的基础上对功能的进行一次较大的增强.

  应用:java.io技术

  所有的缓冲流:Buffered开头流,打印流  printWriter  printerStream   称为装饰流,装饰类

  基础类,原始类:FileInputStream FileOutputStream.FileReader FileWriter

装饰设计思想:

  基础功能

  装饰功能.

原文地址:https://www.cnblogs.com/qingmuchuanqi48/p/10926337.html