title: What is the type of the relationship in the class diagram if the object is initiated or referenced in a method?
body: <p>I am doing a reverse engineering to one system and creating a class diagram. </p>
  
  <p>The code is similar to this example:</p>
  
  <pre><code>class B
  {
  }
  
  class C
  {
  }    
  
  class A
  {
      C GetC()
      {
         return new C();
      }
  
      void Foo()
      {
         B b = new B;
         C c = GetC(); // this function returns a reference to an object of type C
      }
  }
  </code></pre>
  
  <p>I want to know if I have this code what is the relation between the class A and B, A and C?</p>