SoftwareTipsandTricks Forum

Go Back   SoftwareTipsandTricks Forum > General Forums > Chit Chat
User Name
Password


Inhertiance, Aggregation, and Attributes

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes

  #1  
Old 05-20-2004, 02:40 PM
jaschonh Offline
Junior Member
 
Join Date: May 2004
Posts: 1
Inhertiance, Aggregation, and Attributes

inheritance, aggregation, and attributes...what happens?
A systems engineer is writing this, so I will apologize right away.

Assume:
Class A has data attributes of a1 and a2.
Class B has data attributes of b1 and b2.
Class C has data attributes of c1 and c2.

C is an aggregate of A.
B is a child of A.

So I tend to think of A as really including a1, a2, c1, and c2 from a data perpective.

Now, I know B (from a data perspective) includes a1, a2 (from inheritance), b1, and b2. My question is does it also include c1 and c2 (due to A's aggregate relationship to C)?

OR, is the correct way to show that B "includes" c1 and c2 is by making C an aggregate of B too, in addition to A?

I included a diagram.

Thanks!
Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump



All times are GMT -5. The time now is 12:14 AM.


Designed by eXtremepixels. Powered by vBulletin Version 3.5.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 2.3.2 © 2005, Crawlability, Inc.