title: Create Instance of Parent class using Child class Reference
body: <p>Why can we not point the Parent class object using Child class Reference.</p>
  
  <pre><code>class Abc
  {
      public void Message()
      {
          System.out.println("Abc");  
      }
  }
  
  class pqr extends Abc
  {
      public void Message()
      {
          System.out.println("pqr");  
      }   
  }
  
  class test1
  {
      public static void main (String [] ars)
      {
          Abc a = new Abc();  
          a.Message();
          Abc b = new pqr();
          b.Message();
          pqr c = new pqr();
          c.Message();
          //pqr d =  new Abc();
      }
  }
  </code></pre>
  
  <p>So My question is if <code>Abc b = new pqr();</code> is possible then why not <code>pqr d =  new Abc()</code>;(As pqr is a child class and it will have all the features of parent class.)</p>
  
  <p>I just wanted to check If I am doing <code>d.Message()</code> what it will print whether parent class method or child class method.</p>
  
  <p>Thanks</p>