title: How to represent Callback in UML Class Diagram
body: <p>I have an Interface say</p>
  
  <pre><code>Interface ICallback {
      public void informFunction();
  }
  </code></pre>
  
  <p>I have a Class say:</p>
  
  <pre><code>Class Implementation implements ICallback {
  
     public Implementation() {
        new AnotherImplementation(this);
     }
  
     @override
     public void informFunction() {
        // do something
     }
  
  }
  </code></pre>
  
  <p>Now consider a class where in the instance of Class Implementation is passed as a interface and is used to make a callback.</p>
  
  <pre><code>Class AnotherImplementation {
     public ICallback mCallback;
  
     public AnotherImplementation(ICallback callback) {
        mCallback = callback;
     }
  
     public void testFunction() {
       mCallback.informFunction();  // Callback
     }
  }
  </code></pre>
  
  <p>Now I want to know how I can design a UML Class Diagram. <strong>Most importantly I need to know how to represent Callback Functionality that will happen in the Class AnotherImplementation :: testFunction().</strong></p>