If I have a subclass that has methods I\'ve overridden from the parent class, and under very specific situations I want to use the original methods, how do I call those meth
class A {
int foo () { return 2; }
}
class B extends A {
boolean someCondition;
public B(boolean b) { someCondition = b; }
int foo () {
if(someCondition) return super.foo();
return 3;
}
}