This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Object Diagram to Class Diagram transformation

 
Raman Ghai
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
Raman Ghai
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found out that it is not a required to use every class. Guess , my question was too naive .
 
Mohamed Sanaulla
Saloon Keeper
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic