This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Fowler says, "Note that multiple classification 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" I'm not clear about what he says? Can someone please clarify, Thanks.
Joined: Mar 25, 2002
I read Martin Fowler's pdf document on the roles and subtyping and could make some sense(i guess) of what he is talking above. Multiple classification is a concept that can be achieved by implementation of multiple interfaces (roles). Hence we have an object(type) that is implementing multiple types without defining the object type for the specific purpose of multiple classification. This is not the case in multiple inheritance. I guess dynamic classification gives further flexibility to multiple classification with the ability of switching between the roles of a particular object. Did i or still , not really sure Any thoughts will be appreciated.
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