You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$10
For Premium members:
The relationship between objects defines how these objects will interact or collaborate to perform an operation in an application.
Introduction
Composition Composition is a special type of aggregation relationship whereby, the component parts do not exist except as a part of the composition. In our application, for example, the object of Order class is composed of a Customer and an OrderItem. If we break the relationship between the Order and Customer classes, the Customer class can still exit. But if the relationship between the Order class and OrderItem class is broken, then the OrderItem class cannot exist. Assume that the functionality of our application changes in future and instead of taking product orders, now it provides some other services to the existing customers, say a messaging service. In this scenario, the Order class will be of no use now. However, the Customer class which was once composed by the Order class can still exist without it. On the contrary the OrderItem class cannot.
Pro WPF: Windows Presentation Foundation in .NET 3.0