title: Using getClass inside super class
body: <p>I want to return a string value from <code>public String getClass()</code> but I'm getting an error and telling me to change it to</p>
  <pre><code>public Class&lt;?&gt; getClass()
  </code></pre>
  <p>This is the UML</p>
  <p><code>getClass(): String // return “Animal” as class name</code></p>
  <p>I put it as</p>
  <pre><code>public String getClass() {
       return &quot;Animal&quot;;
  }
  </code></pre>