944,033 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 561
  • Java RSS
Sep 30th, 2009
0

Help with class diagram

Expand Post »
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?
Last edited by Whilliam; Sep 30th, 2009 at 7:00 pm.
Similar Threads
Reputation Points: 19
Solved Threads: 0
Junior Poster
Whilliam is offline Offline
110 posts
since Oct 2008
Sep 30th, 2009
-1

Re: Help with class diagram

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...
Moderator
Featured Poster
Reputation Points: 2786
Solved Threads: 874
Code tags enforcer
peter_budo is offline Offline
6,658 posts
since Dec 2004
Oct 1st, 2009
0

Re: Help with class diagram

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.
Featured Poster
Reputation Points: 1924
Solved Threads: 952
Posting Expert
JamesCherrill is online now Online
5,798 posts
since Apr 2008
Oct 1st, 2009
0

Re: Help with class diagram

since it is a static structure I don't think you are allowed to do that
Reputation Points: 9
Solved Threads: 0
Newbie Poster
vamsi310 is offline Offline
5 posts
since Oct 2009
Oct 1st, 2009
0

Re: Help with class diagram

do what?
Featured Poster
Reputation Points: 1924
Solved Threads: 952
Posting Expert
JamesCherrill is online now Online
5,798 posts
since Apr 2008
Jan 12th, 2010
0
Re: Help with class diagram
how to create a class diagram?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
shyneer is offline Offline
1 posts
since Jan 2010
Jan 12th, 2010
0
Re: Help with class diagram
Click to Expand / Collapse  Quote originally posted by shyneer ...
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
Moderator
Featured Poster
Reputation Points: 2786
Solved Threads: 874
Code tags enforcer
peter_budo is offline Offline
6,658 posts
since Dec 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: GUI - how to create a frame
Next Thread in Java Forum Timeline: 2 Dimensional Array wont work.





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC