What interaction diagrams might be drawn for this SSD?
[ 09SSD060208.jpg ]
(Don't draw the diagrams ... just decide how many and what each would do).
Here is the declaration of a member function in C++ & Java translate it into
a (1) sequence diagram, and (2) a communication diagram:
void A::f ( B* b) { b->g(this); C* c = new C; c->h(b); }
public void f ( B b) { b.g(this); C c = new C; c.h(b); }
Answers:
[ 10ExAf.png ]
Here is some more C++ code.... fit it into both your interaction diagrams
void B::g ( A *a) { a->k(); }
public void g ( A a) { a.k(); }
[ 10ExAfBk.png ]