Carlos Castillo

67%
Flag icon
Composition describes a has-a relationship. Meals have appetizers, universities have departments, bicycles have parts. Meals, universities, and bicycles are composed objects. Appetizers, departments, and parts are roles. The composed object depends on the interface of the role.
Practical Object-Oriented Design in Ruby: An Agile Primer
Rate this book
Clear rating