I have following class structure
class A
{
function aa(){
//do something in aa
$this->ab();
}
function ab(){
//do something in ab
}
}
Class B extends A
function ab(){
//do something else in ab
}
}
$b = new B();
$b->aa();
When I call aa() from the object of class B, how can I override the method ab, to make sure its called from class B?