class Super {
public void sample() {
System.out.println("This is the method of super class");
}
}
Public class extends Super {
Public static void sample() {
System.out.println("This is the method of sub class");
}
Public static void main(String args[]) {
new Sub().sample()
}
}