If I have
[PHP]
class Parent
{
function __construct()
{
die("I'm In Parent");
}
}
class Child extends Parent
{
function __construct()
{
echo "going through child constructor..." ;
}
}
$test = new Child();
[/PHP]
The above code does not print the die statement.
I expected it to do so. Bug or By Design?
[PHP]
class Parent
{
function __construct()
{
die("I'm In Parent");
}
}
class Child extends Parent
{
function __construct()
{
echo "going through child constructor..." ;
}
}
$test = new Child();
[/PHP]
The above code does not print the die statement.
I expected it to do so. Bug or By Design?
Comment