Chapter 9


  1. Collaboration describes how two or more classes interact and work with one another.

  2. A UML (Unified Modeling Language) sequence diagram is used to represent a sequence of operations between classes.

  3. No. They are typically diagrams of smaller portions or overviews of an application. An application may contain many sequence diagrams.

  4. No. Unlike flow charts , sequence diagrams do not show flow control; they show sequence.

  5. A return value from a method call.

  6. A method call from one object to the other, as indicated by an arrow.

  7. A UML collaboration diagram shows the basic collaboration or relationship between classes.

  8. A message is normally a method call. A class may receive a message by having one of its methods called, or it may send a message to another class by invoking a method of the other class.

  9. No. If you have a class derived from another, for diagram purposes, it is best to use the more descriptive derived class name even if none of the derived class methods are used (in other words, use Enrollments , not Vector ).

  10. It is a diagram that shows the class name, its methods, and the classes with which it collaborates. A CRC diagram provides an overview of how a class interacts with other classes and what it provides. It is not concerned with sequences or detailed collaboration descriptions.




OOP Demystified
OOP Demystified
ISBN: 0072253630
EAN: 2147483647
Year: 2006
Pages: 130

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net