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
Joined: Mar 15, 2002
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
Joined: Jul 11, 2001
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?
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.