Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Structural Organization

 
Ram Dhan Yadav K
Ranch Hand
Posts: 321
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which one of the following behavioral diagrams emphasizes the structural organization of objects that send and receive messages?
a) Class diagram
b) Sequence diagram
c) Collaboration diagram
d) Object diagram
e) Statechart diagram

 
Allan Moster
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's a choice between Sequence diagram and Collaboration diagram. I will go for sequence diagram since it is more structured.
 
Todd Newbold
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The answer is C.
Sequence shows time. Collaboraton shows over all structure and organization, I read this in either Distilled or UML in 24 hours.
 
Sunny Liu
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it is C, statechart diagram. larman's book 2ed P443
[ March 16, 2002: Message edited by: Sunny Liu ]
 
Ram Dhan Yadav K
Ranch Hand
Posts: 321
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sunny Liu ,
C is colloboration diagram, but you say state chart diagram. Its confusing.
 
Axel Janssen
Ranch Hand
Posts: 2166
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes. Sunny please explain. I dont understand, how you deduce your answer from Larman p.443.
 
Pho Tek
Ranch Hand
Posts: 782
Chrome Python Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's C. Sequence diagram shows the progress of messages between objects over time (sequence) whereas a collaboration diagram shows the spatial distribution of messages. (structure/org)
Pho
 
Parag Shah
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could the answer be d. Object Diagram?
I think a sequence diagram shows the flow of messages among objects as time progresses. However it does not address any structural aspects of the objects. An Object Diagram on the other hand addresses the structural aspects of all objects in the system at a particular snapshot.
Parag
 
Craig Jackson
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe the answer is collaboration diagram, see example below:
of course you know the layout of collaboration diagrams are different the sequence diagrams, so if you have an example collaboration such as
1. create()
 
Craig Jackson
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry for the previous message, I hit the wrong key, I was trying to import an example, but anyway I believe collaboration diagram is the answer because the layout can be used to show how objects are statically connected.(fowler)
 
Sunny Liu
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am sorry, It is collaboration diagram
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic