title: How can I describe a pointer to class in a UML class diagram?
body: <p>If I have a <code>class A</code> which contains a pointer to a <code>class B</code> and a method which takes in input a pointer to <code>class B</code></p>
  <pre><code>class A {
  private:
      B* attribute;
  public:
      void method(B* par);
  }
  </code></pre>
  <p>how can I describe it in a UML class diagram? Do I have to use <code>*</code>? What kind of composition is it?</p>