What will be the output of following code:- <?php class A { public static function foo() { static::who(); } public static function who() { echo __CLASS__."\n"; } } class B extends A { public static function test() { A::foo(); parent::foo(); self::foo(); } public static function who() { echo __CLASS__."\n"; } } class C extends B { public static function who() { echo __CLASS__."\n"; } } C::test(); ?>
Correct Answer: A C C
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More PHP MCQ Questions