944,014 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 4302
  • C++ RSS
Nov 12th, 2006
0

aggregation vs public inheritance?

Expand Post »
Wrestling with more concepts here...

Other than the syntax, there doesn't ssem to be much difference between the aggregation and public inheritance. Pretty much they allow the usage of functions from another class-right?

One can slightly modify the the inherited function but not the aggregated ones?

Why so many ways to do similar things?
I get the feeling that I'm missing some important nuance!
Similar Threads
JRM
Reputation Points: 130
Solved Threads: 75
Practically a Master Poster
JRM is offline Offline
618 posts
since Oct 2006
Nov 12th, 2006
0

Re: aggregation vs public inheritance?

Is this related to C++ only or OOP in general? Because if it is in the general sense, I think this thread is much suited to the Computer Science and Software Design Forum.
Moderator
Reputation Points: 572
Solved Threads: 115
Mentally Challenged Mod.
WolfPack is offline Offline
1,559 posts
since Jun 2005
Nov 13th, 2006
0

Re: aggregation vs public inheritance?

Naw, I'm not THAT deep. LOL
I was just wondering why they have two access modes that are so similar. Are there situations that make one more desireable to use than the other?
JRM
Reputation Points: 130
Solved Threads: 75
Practically a Master Poster
JRM is offline Offline
618 posts
since Oct 2006
Nov 13th, 2006
0

Re: aggregation vs public inheritance?

Its a bit heavy to grasp on your first attempt but try to read this and you will know most of which you want to.
Super Moderator
Featured Poster
Reputation Points: 3233
Solved Threads: 720
Failure as a human
~s.o.s~ is offline Offline
8,872 posts
since Jun 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: reversing a string
Next Thread in C++ Forum Timeline: Help with a 2D array from a text file





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC