title: to use same method of superclass for object of subclass
body: <pre><code>class A {
      void test() {
      }
  }
  
  class B extends A {
      void test() {
      }
  
   public static void main(String[] args)
  {
   B b=new B();
  //insert code here
  }
  }
  </code></pre>
  
  <p>How can I call the <code>test</code> method of class A for  object <strong>b</strong> of class B ?
  specifically for object b </p>