设计模式-装饰模式(Decorator)

今天在学习Io的时候发现里面用到了Decorator: BufferedInputStream bufferedInputStream=new BufferedInputStream(new FileInputStream(new File(""))); 这么一行程序就用到了Decorator模式。 网上的设计模式是在是太多,1+1的问题弄的人晕头转向。可能是我笨吧。 说白了装饰模式,其实就是个叠
相关文章
相关标签/搜索