First call the sub class method from the super class and then provide the signature/declaration for the sub class method in the super class.
class A {
x(){
y();
}
Public void y(){}
}
Class B extends A{
Y(){}
}
class A {
x(){
y();
}
Public void y(){}
}
Class B extends A{
Y(){}
}