title: Notation of UML class diagram
body: <p>I have the following class cDrawObjectCreator:</p>
  
  <pre><code>class cDrawObjectCreator
  {
  public:
      cDrawObjectCreator( cCompositeRoot *compositeObject ) { m_compositeRoot = compositeObject; }
     ~cDrawObjectCreator() {};
     ...
  private:
      cCompositeRoot *m_compositeRoot;
  };
  </code></pre>
  
  <p>It is correct diagram?</p>
  
  <p><img src="https://i.stack.imgur.com/e4YBR.png" alt="enter image description here"></p>
  
  <p>or the following diagram is correct?</p>
  
  <p><img src="https://i.stack.imgur.com/z6r4s.png" alt="enter image description here"></p>