
Reuse: reusing the implementation
•When you have created an useful class, you can reuse its
services not only
declaring objects of the newly created data type, but also instantiating it inside of bigger
classes
•This
relationship in OOP is called composition or aggregation and
is depicted as follows in an UML diagram (which reads: a car has an engine)
http://www.alessandroogheri.com
