Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Class Diagram Detail

 
Bartender
Posts: 1104
10
Netbeans IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Rancher
Posts: 152
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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....
 
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 1104
10
Netbeans IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
But how did the elephant get like that? What did you do? I think all we can do now is read this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic