/**
 * This program demonstrates the use of super to call a method
 * of the same name in a superclass, and also that variables
 * may shadow other variables with different types.
 */

public class ShowSuperMethod {
   public static void main(String[] args) {
      new Bar().b();
   }  
}

class Foo {
   private String a = "Foo";
   protected void b() {
      System.out.println(a);
   }
}

class Bar extends Foo {
   private int a = 13;
   public void b() {
      System.out.println(a);
      super.b();
   }
}

