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

設計模式之裝飾模式(Decorator) 場景 普通人跑步,跳高,舉重很普通。 現在需要使用裝備變成鋼鐵俠,3項指標成倍擴大 Man接口 public interface Man { void run(); int highJump(); int weightlifting(); } public interface Man { void run(); int highJump(); int we
相關文章
相關標籤/搜索