PHP - Inheritance and Polymorphism
What will be the output of this PHP code?
class ParentClass {
function show() {
echo "Parent";
}
}
class ChildClass extends ParentClass {
function show() {
parent::show();
echo " Child";
}
}
$obj = new ChildClass();
$obj->show();