策略模式+模板方法模式
2019-06-17 22:02:05 24 举报
策略模式+模板方法模式UML图
作者其他创作
大纲/内容
ConcreteLolGame
+ initialize():void+ startPlay():void+ endPlay():void
ConcreteStrategyB
+ algorithmMethod():void
实现
StrategyContext
- strategy:IStrategy
+ setStrategy(IStrategy):void+ contextMethod():void
模板方法模式
ConcreteStrategyA
Client
+ main():void
ConcretePokemanGame
继承
聚合
策略模式
<<interface>>IStrategy
<<abstract>>AbstractGame
+ final play():void+ abstract initialize():void+ abstract startPlay():void+ abstract endPlay():void
0 条评论
下一页