| Author |
Aggregation and Generalization
|
aakash bath
Greenhorn
Joined: Mar 15, 2002
Posts: 12
|
|
Hi everbody As i had understood Agrregation mean a part whole relation ship between objects so when we say whole realtionship between ojects does it imply Generalization.
|
 |
Ilja Preuss
author
Sheriff
Joined: Jul 11, 2001
Posts: 14112
|
|
|
No. A character may be a "part of" a string, but a string is not a generalization of a char.
|
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
|
 |
aakash bath
Greenhorn
Joined: Mar 15, 2002
Posts: 12
|
|
Hi Ilja An example like: A window is a part of Car is an aggreagate object. Same Car class extending Window class is a generalization So in this case it is both Aggregation and Generalization and so way are they related. Regards, Pradeep
|
 |
Ilja Preuss
author
Sheriff
Joined: Jul 11, 2001
Posts: 14112
|
|
I'm not sure I understand your question... Aggregation and Generalization/Specialization are totally orthogonal concepts. Of course you can have both at the same time, but one doesn't imply the other in any way. Does that help?
|
 |
Zafar Ali
Ranch Hand
Joined: May 11, 2002
Posts: 64
|
|
|
Sometimes a class consists of a number of a components classes. This is a special type of relationship called aggreagation.An Aggreagation specifies a part-whole assocation class is made up of component classes.A composite is a strong form of aggreagation,and a component in a composite can be part of only one whole. Aggregation and composites are represented as lines joining the whole and the component with open and filled diamond, respectively, on the whole side.
|
Zafar <br />***Your behaviour should affect.***
|
 |
 |
|
|
subject: Aggregation and Generalization
|
|
|