分析以下代码,判断下面说法那个是正确的( )。class Animal { final function shout(){ echo 'parent'; }}class Dog extends Animal { public function shout(){ echo 'son'; }}$dog=new Dog();$dog->shout();
A.
代码运行结果会在浏览器输出"son"字样
B.
代码运行将出错,因为父类的shout方法别定义为了final方法,该方法不能被子类重写
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
皮皮学刷刷变学霸
举一反三
【单选题】Which one of the followings about Traffic Separation Scheme (TSS) is incorrect?( )
A.
TSS separates inbound and outbound traffic in well marked lanes
B.
Regulations request all vessels to join or leave lanes at the extremities
C.
If a TSS has to be crossed, it has to be carried out as close as possible to a right angle
D.
Being in the TSS does change the general rule of the Road convention