title: UML Class Diagram: Attribute or Association?
body: <p>Now i have two classes, named patient and doctor:</p>
  
  <pre><code>Patient() {
       public:
          //functions here
      private:
      Doctor doctor;
      Date dateAdmitted;
      Date dateDischarged;
  }
  
  Doctor() {
      public:
      //functions here
      private:
      //data members here
  }
  </code></pre>
  
  <p>In my UML class Diagram for patient class, do i need to include the doctor and date as attribute? or i just represent them by linking them as association?</p>
  
  <p>If attribute it should be like:</p>
  
  <h2>Patient</h2>
  
  <p>doctor : Doctor</p>
  
  <p>dateAdmitted : Date</p>
  
  <p>dateDischarged : Date</p>