Design Patterns

A design patterns are patterns that explain, motivate and names a general design in the problem solving process in object-oriented programming.

https://www.geeksforgeeks.org/software-design-patterns/

There are different classification systems that design patterns fall under creational, behavior and structural

.

Creational design patterns abstract the instantiation process. They increase independecy of the creation, composition and representation of the its object’s creation. They increase flexibility and recycling of code.

A class creational pattern uses inheritance to vary the class that’s instantiated

An object creational pattern will delegate instantiation to another object.

Structural patterns use inheritance to compose interfaces or implementation. IT is a class that combines the properties of its parent class. It is concerned with classes and objects that compose a larger structure while keeping those structures flexible and efficient.

“Rather than composing interfaces or implementations, structural object patterns describe ways to
compose objects to realize new functionality. The added flexibility of object composition comes from the
ability to change the composition at run-time, which is impossible with static class composition.”

Behaviour design patterns involve algorithms and the assignment of responsibilities between objects. They use inheritance to distribute behavior between classes.

Leave a comment

Design a site like this with WordPress.com
Get started