Bridge structural pattern
Bridge is a structural design pattern that lets you split a large class or a set of closely related classes into two separate hierarchies —abstraction and im...
Bridge is a structural design pattern that lets you split a large class or a set of closely related classes into two separate hierarchies —abstraction and im...
Extending a class is the first thing that comes to mind when you need to alter an object’s behavior.
An adapter is a special object that converts the interface of one object so that another object can understand it.
The Visitor pattern suggests that you place new behavior into a separate class called visitor, instead of trying to integrate it into existing classes.
The Template Method pattern suggests that you break down an algorithm into a series of steps, turn these steps into methods, and put a series of calls to the...