ok i have 2 classes
class A{
public function say(){
echo "hello<br>";
}
}
class B extends A{
public function say(){
echo "hi<br>";
}
}
$haha = new B();
$haha->say();
well as you see i overloaded the method say() in class b... but what i want here is to merge the two methods and not overwrite each other. my desired output I want is this
hello<br>
hi<br>
is this possible?
NOTE: if my terms are wrong, please teach me the right terms. I am really new to PHP OOP