[Design Patterns] Template Method Pattern

Template Method Pattern – when you define and implement one or more common methods in the base abstract class, but leave some abstract methods to be implemented in the child classes depending on the context. You may invoke the concrete methods from the abstract one. The abstract method contains functionality common to all types of classes.


Leave a Reply

Your email address will not be published. Required fields are marked *