SE450: TEMPLATE METHOD Pattern [39/65] Previous pageContentsNext page

Name in Design Pattern
Actual Name (Selectable shapes)
AbstractClass
SelectableShape
ConcreteClass
CarShape, HouseShape
templateMethod()
drawSelection
primitiveOp1(), primitiveOp2()
translate, draw

Previous pageContentsNext page