Implementation of Design Patterns in C++
- Abstract Factory
- Builder
- Factory Method
- Prototype
- Singleton C++ Python
- Chain of responsibility
- Command
- Interpreter
- Iterator
- Mediator
- Memento
- Observer
- State
- Strategy
- Template Method
- Visitor
classDiagram
class Boat {
<<interface>>
+Sail() void
}
class Car {
-name: string
+Car(str: string)
+Drive() void
}
class CarToBoat {
-car: Car*
+CarToBoat(c: Car*)
+Sail() void
}
CarToBoat --|> Boat : inherits
CarToBoat o--> Car : adapts