0

What is association in c++?

answer of the question: Association is a relationship where all object have their own lifecycle and there is no owner. Let’s take an example of Teacher and Student. Multiple students can associate with single teacher and single student can associate with multiple teachers but there is no ownership between the objects and both have their own lifecycle. Both can create and delete independently.

2nd Apr 2017, 6:03 PM
$¢𝐎₹𝔭!𝐨𝓝
$¢𝐎₹𝔭!𝐨𝓝 - avatar
2 Answers
+ 3
If you're going to copy & paste from StackExchange, make sure to cite your sources: https://softwareengineering.stackexchange.com/questions/176049/what-is-the-use-of-association-aggregation-and-composition
2nd Apr 2017, 8:03 PM
Squidy
Squidy - avatar
0
In C/C++ domain modeling class diagrams, an association is a structural relationship that indicates that objects of one classifier, such as a class and interface, are connected and can navigate to objects of another classifier.
3rd Apr 2017, 5:04 AM
futureAliens
futureAliens - avatar