613 B
613 B
Composite Pattern
Description
Compose objects into tree structures to represent part-whole hierarchies.
Use Cases
Load this skill when you need to solve design problems described by this pattern in your code.
Guidelines
- Analyze whether current code structure matches the pattern's intent.
- Refactor or implement following the pattern's typical structure.
- Ensure the pattern introduction reduces coupling or improves flexibility.
Detailed Reference
For more details, diagrams, and code examples: Composite Pattern - RefactoringGuru