SE450: TEMPLATE METHOD Pattern [39/65] |
Name in
Design Pattern |
Actual Name
(Selectable shapes) |
AbstractClass |
SelectableShape |
ConcreteClass |
CarShape,
HouseShape |
templateMethod() |
drawSelection |
primitiveOp1(),
primitiveOp2() |
translate,
draw |