title: Accessibility of methods from super-class
body: <p>I have doubts that we can create and reference an object of one class and assign it to its subclass. If so, can we use sub-class methods with that object created? </p>
  
  <p>Here is the example:</p>
  
  <pre><code>class Super_Class
  {
  }
  
  class Sub_Class extends Super_Class
  {
  }
  
  public class test
  {
      public static void main(String a[])
      {
          Super_Class obj;
          obj= new Sub_Class;
      }
  } 
  </code></pre>
  
  <p>What about the access of methods, I mean which class methods are accessible?</p>