What is composition in C# with example?

Composition in C# The composition is a special type of Aggregation and gives a part-of relationship . For example, A Car has an engine. If the car is destroyed, the engine is destroyed as well.

Sizin İçin Seçtik  Is a part of relationship in OOP?

Leave a Reply

Your email address will not be published. Required fields are marked *