This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi there ,
I have to create a class diagram from an object diagram that involves various geometrical figures such as ellipse , circle , square etc. I must use generalization in my approach to create a class diagram . So I am thinking of creating a class diagram that involves 1D, 2D etc as superclass and ellipse , circle , square etc as subclass. So , the question arises here that do I have to use every class of my class diagram when transforming it to an object diagram (here referring to superclasses 1D , 2D etc). Any info about resources/software on UML will be appreciated . Thanks..
Joined: Jan 01, 2012
I found out that it is not a required to use every class. Guess , my question was too naive .
Object diagram shows the objects and their relationships at a certain snapshot of time. In class diagram you would have a generalisation, aggregation and other relationships. But in object diagram there may be only instance of one of the Sub classes or you would show how many instances are part of the aggregation.
Hope this is what even you found out.