hi
this is my coding .i have one abstract class that is exrended by class b..
i am creating obj reference for class a...
how will u call the abstract class method amethod() from class a..
the output should be 'b method 1';;
any one know?
Thanks
Ramesh.N
abstract class b{
private int i=1;
public void amethod(){
System.out.println("b method"+i);
}
}
public class a extends b{
private int i=2;
public void amethod(){
System.out.println("a method"+i);
}
public static void main(
String arg[]){
b bobj=new a();
bobj.amethod();
}
}