Originally posted by Alvin chew:
wondering is there any relation between sequence diagram and class diagram ? as what i know on sequence diagram is showing the sequence events that happen in between objects, would it means we have to include all the objects in sequence diagram to class diagram as well ?
Well, the relation between sequence diagrams and class diagrams is that they're both UML diagrams. That's about it.
Sequence diagrams describe the dynamic aspect of your design, i.e. which
object invokes which methods of which other objects in which order, while class diagrams describe the static aspect of your design, i.e. which
class inherits which and which classes have associations to which other classes.
Also, I'd really encourage you to not think of such rules as "have to ... all ..." because design is not supposed to be a bureaucratic act to satisfy corporate policy. It's supposed to help you get stuff done.