PrepAway - Latest Free Exam Questions & Answers

What would be the output of the following code?

What would be the output of the following code? namespace MyFramework\DB; class
MyClass { static function myName() { return __METHOD__; } } print MyClass::myName();

PrepAway - Latest Free Exam Questions & Answers

A.
MyFramework\DB\myName

B.
MyFramework\DB\MyClass\myName

C.
MyFramework\DB\MyClass::myName

D.
MyClass::myName


Leave a Reply

Your email address will not be published. Required fields are marked *