title: Proper UML modelling for inheritance from an abstract class
body: <p>Which one ist the correct model for the following implementation.</p>
  <pre><code>class Habitat {
      int id;
      String name;
  }
  
  abstract class Animal {
      int id;
      String name;
      Habitat habitat;
  }
  
  class Fish extends Animal {
      // Fish Attributes
  }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/wRg7n.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wRg7n.jpg" alt="two class diagrams with Habitat, Animal and Fish" /></a></p>