I know how to call a method in a super class from a subclass by super.
even when the method is overriden. But how can I call the method in the super class?
Is it impossible?
public class Test extends Super{
public static void main (String[] args){
Test t = new Test();
t.print();
}
void print1(){
System.out.println("Hello");
}
}
class Super{
void print1(){
System.out.println("hi");
}
void print(){
print1();
// What can I do when I want to print "hi"
}
}