title: How do I strictly implement the given UML using Java?
body: <p>I am trying to implement the UML below using Java:</p>
  <p><a href="https://i.stack.imgur.com/MxMpt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MxMpt.png" alt="enter image description here" /></a></p>
  <p>I have successfully implemented every instruction except one which is:</p>
  <p>Theater class:</p>
  <ul>
  <li>Override the showArea method and display the size multiply by 12.</li>
  </ul>
  <p>I am new to UML and from my understanding, I am not allowed to create constructors in any of the classes. This is confusing since I don't know where I can define the size for showArea.</p>
  <p>Below is the working code I have right now.</p>
  <p><strong>Place Class</strong></p>
  <pre><code>public abstract class Place {
      private String placeName;
      private int capacity;
      private String placeDescription;
      private int workingHours;
  
  
      public abstract void showEvents();
  }
  </code></pre>
  <p><strong>Building Class</strong></p>
  <pre><code>public abstract class Building extends Place{
      
      public abstract void showArea();
  }
  </code></pre>
  <p><strong>Theater Class</strong></p>
  <pre><code>public class Theater extends Building{
      @Override
      public void showArea() {
          System.out.println(&quot;Theater area : &quot; );
      }
  
      @Override
      public void showEvents() {
          System.out.println(&quot;Events ready to be hosted !!&quot;);
      }
  }
  </code></pre>
  <p><strong>Main class</strong></p>
  <pre><code>public class CodingtonDemo {
      public static void main(String[] args) {
          Theater theater = new Theater();
          theater.showArea();
          theater.showEvents();
      }
  }
  </code></pre>
  <p><strong>Expected result in console:</strong></p>
  <p>Theater area : 6000</p>
  <p>Events ready to be hosted !!</p>
  <p><strong>My result so far:</strong></p>
  <p>Theater area : [No value yet]</p>
  <p>Events ready to be hosted !!</p>