Design patterns tell us how to structure classes and objects to solve certain problems
It is common for libraries and frameworks to make use of design patterns in their implementation.
Built around the key OO concepts: abstraction, inheritance, polymorphism, encapsulation

Encapsulate what varies or changes
Have composition over inheritance
Program to interfaces not implementations
Classes should be open for extension but closed for modification.

Patterns show you how to build systems with good OO design qualities

compound pattern ??

Pattern Categories

Involve object instantiation with a way of decouplying a client from the objects it needs to instantiateObjectBuilder
BehaviouralObjectChain of Responsibility
How classes and object interact and distribute responsibilityObjectCommand
 ClassTemplate Method
Let you compose classes or objects into larger structuresObjectBridge

© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited TopNext