PHP - Inheritance and Polymorphism
What will be the output of the following PHP code?
class A {
public function __construct() {
echo "A constructor\n";
}
}
class B extends A {
public function __construct() {
echo "B constructor\n";
}
}
new B();