Static Class Structure
AbstractClass
templateMethod() operation
that defines the skeleton (template) of a behavior
by implementing the invariant
parts of the behavior
and calling abstract primitive1()
and primitive2() operations
to defer implementing the variant
parts to SubClass1.
primitive
operations
for the variant
parts of a behavior.
SubClass1,…
primitive operations.