By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,194 Members | 819 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,194 IT Pros & Developers. It's quick & easy.

Association, Composition, Aggregation

P: n/a
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.

Feb 21 '07 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Salman wrote:
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?
Feb 21 '07 #2

P: n/a
On Feb 22, 1:34 am, "Victor Bazarov" <v.Abaza...@comAcast.netwrote:
Salman wrote:
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?
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.

Feb 21 '07 #3

P: n/a
Salman wrote:
On Feb 22, 1:34 am, "Victor Bazarov" <v.Abaza...@comAcast.netwrote:
>Salman wrote:
>>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?

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
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Feb 21 '07 #4

P: n/a
Salman wrote:
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
Feb 21 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.