Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Do we need to show Attributes in class diagram

 
Pravin Kumar
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I wanted to know if you need to show attributes and operation. I know for sure that you need to show operation in class diagram that is used in sequence diagram.

So do they expect us to "completely" formulate all the attributes and operation or just mention as and when used in any diagram (keeping in mind that if i use a operation name in sequence diagram ONLY THEN i need to metion in class diagram). Is my understanding correct?

Thanks in advance.

Pravin Kumar
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Pravin Kumar:
Hi all,

I wanted to know if you need to show attributes and operation. I know for sure that you need to show operation in class diagram that is used in sequence diagram.

So do they expect us to "completely" formulate all the attributes and operation or just mention as and when used in any diagram (keeping in mind that if i use a operation name in sequence diagram ONLY THEN i need to metion in class diagram). Is my understanding correct?

Thanks in advance.

Pravin Kumar


It is not mandatory to show attributes or operations in your class diagram. I did not show either attributes or operations but still used operations in my sequence diagram. If you plan to show the class diagram at a conceptual level then you can omit attributes and operations and include them only at key places.

Good luck
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic