- Holding the reference of the other class within some other class is known as composition.
- It is a special type of composition. If you expose all the methods of a composite class and route the method call to the composite method through its reference, then it is called aggregation.
No comments:
Post a Comment