Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Class Diagram Detail

 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1101
10
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
In Part II, I was thinking that, we have to specify all the important methods along with parameters (otherwise how would the flow be clear?).
When I saw the class diagram on Mark Cade's book online, I was almost shocked. It just had the class names and not a single method or attribute. Is this fine for the actual exam?
Also, we need to draw sequence diagrams - for that we do need to know method names etc. - this seems to be contradictory...
 
Teja Saab
Rancher
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is not possible to add every single attribute/method to the class diagram IMHO. I think we need to add the significant methods/attributes to the classes and of course the methods that are depicted in the sequence diagram need to be shown in the class diagram. This is explicitly mentioned in the deliverables section.

I think that our diagrams need to be more detailed (but not by much) than the diagram in chapter 9 of the SCEA study guide.

Just my thoughts though....
 
Dmitri Ericsson
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's simple: put all the methods from sequence diagrams + some (not many) additional fields or methods if you feel that it helps to understand how everything works
 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1101
10
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hmm...this makes it little difficult for me...
I design my classes first and then goto sequence - though when drawing class diagrams, I think about the sequence!
and also from a tool point of view, you have to indeed draw the class diagram first and then only you will be able to draw sequence...so, I have to start using my hand-drawing...which I haven't done till now.

Thanks for the valuable points though...it has made my understanding much easier...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic