title: UML association and dependency
body: <p>What is the difference between association and dependency? Can you give code examples?
  What is the relationship between class A and B?</p>
  
  <pre><code>class A
  {
      B *b;
  
      void f ()
      {
          b = new B ();
          b-&gt;f();
          delete b;
      }
  }
  </code></pre>