以下脚本输出什么? class a{ function a ($x = 1){ $this->myvar = $x; } } class b extends a{ var $myvar; function b ($x = 2){ $this->myvar = $x; parent::a(); } } $obj = new b; echo $obj->myvar;
A.
1
B.
2
C.
一个错误,因为没有定义a::$myvar
D.
一个警告,因为没有定义a::$myvar
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
皮皮学刷刷变学霸
举一反三
【单选题】Vladivostok(符拉迪沃斯托克)is Russia's largest porty in the Far East. In 2012,it hosted 24th APEC Summit Forum. It is located on the shore of the___________.