Template Method deseni, bir temel sınıfta bir algoritmanın iskeletini tanımlar ve alt sınıfların genel yapıyı değiştirmeden belirli adımları doldurmasına olanak tanır. Ortak bir süreci yakalar ve bireysel adımların özelleştirilmesine izin verir.
Template Method deseninin yaptığı şeyler
TEMPLATE METHOD → define an algorithm's overall STRUCTURE in a base method, with some STEPS
left for subclasses to implement:
→ the base class controls the overall flow (the "template")
→ subclasses override specific STEPS (the parts that vary)
→ the algorithm's structure is FIXED; the steps are customizable
→ "common process, customizable steps"
