Zend
200-550 · Question #16
What would be the output of the following code? namespace MyFramework\DB; class MyClass { static function myName() { return __METHOD__; } } print MyClass::myName();
The correct answer is C. MyFramework\DB\MyClass::myName. See the full explanation below for the reasoning.
Question
What would be the output of the following code? namespace MyFramework\DB; class MyClass { static function myName() { return METHOD; } } print MyClass::myName();
Options
- AMyFramework\DB\myName
- BMyFramework\DB\MyClass\myName
- CMyFramework\DB\MyClass::myName
- DMyClass::myName
How the community answered
(67 responses)- A6% (4)
- B13% (9)
- C78% (52)
- D3% (2)
Community Discussion
No community discussion yet for this question.