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

设计模式之装饰模式(Decorator) 场景 普通人跑步,跳高,举重很普通。 现在需要使用装备变成钢铁侠,3项指标成倍扩大 Man接口 public interface Man { void run(); int highJump(); int weightlifting(); } public interface Man { void run(); int highJump(); int we
相关文章
相关标签/搜索