## Aggregation <br />of<br />Objects ### (Ch. 14.7) --- ## Aggregation * _Aggregation_: an object of one class is used as an attribute in another class * Sometimes called _composition_ * Creates the _"has a" relationship_. Large book example in Chapter 14 Instructor Textbook Course --- __*Example*__ ```cpp class Tool{ private: std::string name; double weight; public: [...] // interface not shown for brevity }; class ToolBox{ private: Tool inventory[1024]; // aggregation of "Tool" objects public: [...] // interface not shown for brevity }; ```