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
0
Junior Poster
Recommended Answers
Jump to PostDepending 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...
Jump to PostThe 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 …
All 6 Replies
peter_budo
2,532
Code tags enforcer
Team Colleague
Featured Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
vamsi310
-1
Newbie Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
shyneer
0
Newbie Poster
peter_budo
2,532
Code tags enforcer
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.