DESIGN-PATTERNS Course

Template method

Go back

Simply use abstract classes or interfaces to define the properties of subclasses.

  • ✅ : prevent a lot of copy-paste
  • 🚫 : more work to do

May this example on tutorialspoint helps.