Say I have this Super Class:
public class MySuperClass {
protected void MyPrMethod() {
//Do...
}
public void MyPuMethod() {
MyPrMethod();
}
}
and this Sub Class:
public class MySubClass extends MeSuperClass {
public MySubClass() {}
@Override protected void MyPrMethod() {
//Do this instead...
}
}
Then into main:
MySubClass mySubClass = new MySubClass ();
mySubClass.MyPuMethod();
Which MyPrMethod will mySubClass.MyPuMethod() call?
Edit: I got downvoted thrice already. I cannot try it now since I am not at home, though knowing the answer right now will help me designing a part in a program I am making.