标签:http ati get eve com actor span step source
Factory Method is a specialization of Template Method. At the same time, a Factory Method may serve as a step in a large Template Method.
Template Method is based on inheritance: it lets you alter parts of an algorithm by extending those parts in subclasses. Strategy is based on composition: you can alter parts of the object’s behavior by supplying it with different strategies that correspond to that behavior. Template Method works at the class level, so it’s static. Strategy works on the object level, letting you switch behaviors at runtime.
Template Method Design Pattern
标签:http ati get eve com actor span step source
原文地址:https://www.cnblogs.com/chucklu/p/13140720.html