Note that multiple classifiction is different from multiple inheritance. Multiple inheritance says that a type may have many supertypes, BUT THAT A SINGLE TYPE MUST BE DEFINED FOR EACH OBJECT. MULTIPLE CLASSIFICATION ALLOWS MULTIPLE TYPES FOR AN OBJECT WITHOUT DEFINING A SPECIFIC TYPE FOR THE PURPOSE
Multiple classification of objects for conceptual models
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
Originally posted by Jayadev Pulaparty:
Fowler in his "UML distilled" says that dynamic classification allows an object to change type within the subtyping structure (under the same type descriminator). How is this implemented in programming? I assume that the client just has an interface in his hand and has no idea of the implementation he is working with. How is the underneath implementation changed (i guess this is the meaning of "change type")and how is all this achieved?
Also, can someone throw some light on multiple classification. Is it used in implementation models also?
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
Originally posted by Jayadev Pulaparty:
Fowler says it is something like an object described by several types (implementing different interfaces, i guess so!!!) which are not necessarily connected by inheritance.
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
Originally posted by Jayadev Pulaparty:
What does this exactly mean? If i show the allowable combination of types using UML notation, who is going to ensure that i'm not violating this protocol when i implement the interfaces on my object ??
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
My stuff -
Also, can someone throw some light on multiple classification. Is it used in implementation models also?
Your reply -
That would only make sense if the implementation language directly supported it. Java doesn't.
Originally posted by Jayadev Pulaparty:
Fowler says it is something like an object described by several types (implementing different interfaces, i guess so!!!) which are not necessarily connected by inheritance.
Your reply -
No, not by implementing different interfaces. Just by having different types at the same time. Remember, we are talking about the conceptual model here - there is nothing implied about the implementation at all.
Originally posted by Jayadev Pulaparty:
What does this exactly mean? If i show the allowable combination of types using UML notation, who is going to ensure that i'm not violating this protocol when i implement the interfaces on my object ??
Your reply -
I am somewhat confused by the question. The purpose of UML is to communicate. Of course if you don't understand the requirements or don't care to implement them, if nobody is writing tests for the system, if nobody is reviewing your code - you will be doomed, wether you are using UML or not, with or without dynamic or multiple classification.
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