Association, Composition, Aggregation

S

Salman

The most confusing concept i have seen in OOP is the difference
between Association, Composition and Aggregation. Anyone please tell
me whats the actual difference between these three using EXAMPLES in c+
+. I shall be very very thankful to you if you prove these concepts
using examples.
 
V

Victor Bazarov

Salman said:
The most confusing concept i have seen in OOP is the difference
between Association, Composition and Aggregation. Anyone please tell
me whats the actual difference between these three using EXAMPLES in
c+ +. I shall be very very thankful to you if you prove these concepts
using examples.

What book on OOP/OOD are you reading that doesn't explain those things?
 
S

Salman

What book on OOP/OOD are you reading that doesn't explain those things?

Im reading C++ by deitel and deitel , it doesn't have these concepts.
Infact it should not have because its c++ book not an OOP or ODA book.
Please provide me any good links. I badly need to learn these three
things.
 
V

Victor Bazarov

Salman said:
Im reading C++ by deitel and deitel , it doesn't have these concepts.
Infact it should not have because its c++ book not an OOP or ODA book.
Please provide me any good links. I badly need to learn these three
things.

If you need book recommendations on OO[A/D/P], I thing you should ask
in 'comp.object'. Infact, that's a much better newsgroup to ask about
association, composition, aggregation. They do know C++ and can very
likely supply you with examples as well...

V
 
J

John Harrison

Salman said:
The most confusing concept i have seen in OOP is the difference
between Association, Composition and Aggregation. Anyone please tell
me whats the actual difference between these three using EXAMPLES in c+
+. I shall be very very thankful to you if you prove these concepts
using examples.

Try googling

http://ootips.org/uml-hasa.html

even has C++ examples.

john
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,906
Latest member
SkinfixSkintag

Latest Threads

Top