1. How to describe this situation in sequence diagram?

 

ClassA{

  Init(){

    SetEnable();

  }

 

  setEnable(){

    ClassB.method1();

    ClassB.method2();

              }

            }

I list the diagram below, but I found it��s not very clear because In fact, method1() and method2() is belongs to setEnable(), but in the diagram, we can��t see this, how to describe this correctly?

 

  1. ClassA {

         ClassB b=new ClassB();

         C.set(b);

     }

 

Is it clear to describe this, or it there other better idea?

 

  1.   ClassA {

         ClassB b=ClassD.createClassB();

         C.set(b);

     }

How to draw this?

any help is appreciated


Best Regards,
Eric Hua
 

Reply via email to