I have a question about overriding methods. if i have class a that has a method that can be overriden by the subclasses but is called in the superclass
public class a {
//this is the main class
public a() {
//etc code
callMethod();
}
void callMethod() {
//do nothing here. will be overriden in subclas
}
public class b extends a {
void callMethod() {
//actually impliment here
}
}
how to I call class b's implimentation of the method from class a