mirror of
https://github.com/iandinwoodie/cpp-design-patterns-for-humans.git
synced 2025-12-17 04:24:40 +03:00
@@ -1039,7 +1039,9 @@ std::cout << careers.getContent() << std::endl;
|
||||
|
||||
#### When To Use
|
||||
|
||||
TODO
|
||||
When you need to implement several variants of some functionality for a class,
|
||||
you find yourself extending a class in competing ways, or you need to allow
|
||||
switching between implementations at runtime.
|
||||
|
||||
### 🌿 Composite
|
||||
|
||||
|
||||
Reference in New Issue
Block a user