CertyRush
Đang tải...
C CertyRush
Câu hỏi free preview

Câu 13: 200-550: Zend Certified PHP Engineer

What is the output of the following code?class Base {protected static function whoami() {echo "Base ";}public static function whoareyou() {static::whoami();}}class A extends Base {public static function test() {Base::whoareyou();self::whoareyou();parent::whoareyou();A::whoareyou();static::whoareyou();}public static fu…

Nội dung câu hỏi

What is the output of the following code?class Base {protected static function whoami() {echo "Base ";}public static function whoareyou() {static::whoami();}}class A extends Base {public static function test() {Base::whoareyou();self::whoareyou();parent::whoareyou();A::whoareyou();static::whoareyou();}public static function whoami() {echo "A ";}}class B extends A {public static function whoami() {echo "B ";}}B::test();

Các lựa chọn

Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.

  1. A. B B B B B
  2. B. Base A Base A B
  3. C. Base B B A B — đáp án hiện tại
  4. D. Base B A A B

Cộng đồng

0 bình luận công khai. Tên thành viên được ẩn một phần.

Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.

Câu hỏi liền kề