为什么提示运行成功,输出错误
<?php
class Car{
function _construct(){
print "构造函数";
}
function _destruct(){
print "析构函数";
}
}
class Bus extends Car{
function _construct(){
print "子类构造";
parent::_construct();
}
}
$car =new Car();
$bus =new Bus();
<?php
class Car{
function _construct(){
print "构造函数";
}
function _destruct(){
print "析构函数";
}
}
class Bus extends Car{
function _construct(){
print "子类构造";
parent::_construct();
}
}
$car =new Car();
$bus =new Bus();
2018-11-24
举报