How to HIDE a static method in a superclass in the following code:
class suupcls{
public static void mthd(){
System.out.println("This supercls static mthd");
}
class subcls extends supcls{
public static void mthd(){
System.out.println("This subcls static mthd");
}
}
public class test{
public static void main(
String args[]){
subcls.mthd();//calls supercls mthd
subcls subob=new subcls();
subob.mthd();//ALSO CALLS MTHD IN SUPERCLS
}
}
thanx in advance
rishi