設計模式-裝飾模式(Decorator)

今天在學習Io的時候發現裏面用到了Decorator: BufferedInputStream bufferedInputStream=new BufferedInputStream(new FileInputStream(new File(""))); 這麼一行程序就用到了Decorator模式。 網上的設計模式是在是太多,1+1的問題弄的人暈頭轉向。可能是我笨吧。 說白了裝飾模式,其實就是個疊
相關文章
相關標籤/搜索