Template Method
The Template Method Design Pattern allows you to declare a general logic at the parent class so that all the child classes can use the general logic. To give an example, the general way of building a car is to build the skeleton first, followed by the installation of the engine, and finally the installation of the doors. This general sequence of building the car is the template method, since you will always need to use this logic no matter what types of cars you are building.