装饰器模式 和 适配器模式 装饰器模式:增强效果,将继承父接口,赋予更过的功能。 public class FilterInputStream extends InputStream { / 2021-05-07 · hymn · 设计模式 · 0 评论 · 0 浏览