hi all
my code:
class Base{
private void amethod(int iBase){
System.out.println("Base.amethod");
}
}
class Over extends Base{
public static void main(
String argv[]){
Over o = new Over();
int iBase=0;
o.amethod(iBase);
}
public void amethod(int iOver){
System.out.println("Over.amethod");
}
}
This code compile & run fine and output is "Over.amethod" .
my doubt is private method how do overitten any one explain above code .
Thanks & regards
venkat