954,536 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Help with class diagram

In the class diagram, we'll put attributes of our class in the section at the middle of the class' name and methods right?
I'm wondering, are we also put instantiated variables in there? Like the variables instantiating other classes and buttons?

Whilliam
Junior Poster
112 posts since Oct 2008
Reputation Points: 19
Solved Threads: 0
 

Depending on requirements given to you, but mostly no as the list of the variables would make it too long.
However I know a professor at university that demanded all variables to be listed too...

peter_budo
Code tags enforcer
Moderator
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
 

The class diagram should show only the externally visible characteristics of the class. Attributes (RW/RO/WO) correspond either to non-private variables, or to conventional non-private accessor methods. Private variables would not normally be shown, although you sometimes see one included because it's important to the reader's understanding of how the class works.

JamesCherrill
Posting Genius
Moderator
6,373 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073
 

since it is a static structure I don't think you are allowed to do that

vamsi310
Newbie Poster
5 posts since Oct 2009
Reputation Points: 9
Solved Threads: 0
 

do what?

JamesCherrill
Posting Genius
Moderator
6,373 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073
 

how to create a class diagram?

shyneer
Newbie Poster
1 post since Jan 2010
Reputation Points: 10
Solved Threads: 0
 
how to create a class diagram?


By using common sense. Class diagram represent all the method provided by the class and global variable used (not always required). Then you connect classes between each other depending on their availability. If this is not enough read here

peter_budo
Code tags enforcer
Moderator
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You