0

anyone can explain composition in java with example?

Composition

22nd Apr 2020, 5:33 AM
Kuldeep rathod
2 Respostas
+ 5
For example: A car has a engine, a window has a button, a zoo has a tiger. Composition is a special case of aggregation. In other words, a restricted aggregation is called composition. When an object contains the other object and the contained object cannot exist without the other object, then it is called composition.
22nd Apr 2020, 5:34 AM
⁣𓆩 Anкΐτ soℓคnкΐ ♣️
⁣𓆩 Anкΐτ soℓคnкΐ ♣️ - avatar
+ 2
Please refrain from copying your thread title into the tags. Tags are search terms, use of irrelevant words in tags will ruin accuracy of search facility.
22nd Apr 2020, 7:17 AM
Ipang