title: How to use method from parent class of hierarchy?
body: <p>Using the following code:</p>
  
  <pre><code>public class Animal {
      public void a() {
          System.out.println("Animal");
      }
  }
  
  public class Cat extends Animal {   
      public void a() {
          System.out.println("Cat");
      }
  }
  
  public class BlackCat extends Cat {
      public static void main(String[] args) {
  
          BlackCat blackCat = new BlackCat();
          blackCat.a();
      }
  }
  </code></pre>
  
  <p>How to use in child class <code>BlackCat</code> method <code>a()</code> from <code>Animal</code> but not from <code>Cat</code>?<br>
  I want to receive <code>Animal</code> in console.</p>