class A
{
public void a()
{
System.out.println("a");
}
}
class B extends A
{
@Override
public void a() {
// TODO Auto-generated method stub
System.out.println("b");
}
}
public class MainApp {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
A b=new B();
b.a();
}
}
b