Glossary: Software Design Patterns in Rust
Composite
Also written: composite pattern
A pattern where an item and a group of items answer the same method, so a group can hold other groups. A gift Bundle's price is the sum of its parts' prices.
Glossary: Software Design Patterns in Rust
Also written: composite pattern
A pattern where an item and a group of items answer the same method, so a group can hold other groups. A gift Bundle's price is the sum of its parts' prices.