Elance Exams Answers PDF file

-- PDF FILE --
Download PDF file of elance Zoho Creator Exam Answers
elance-zoho-creator-exam.pdf

Given the following code: <?php class HelloWorld { public static $var; function __construct($var = "HelloWorld\n") { self::$var = $var; } public function printVar() { echo self::$var; } } class A extends HelloWorld { public static final function accessVar() { HelloWorld::$var = "Access"."\n"; echo HelloWorld::$var; } } A::accessVar(); $hello = new HelloWorld("Hi!\n"); echo $hello->printVar(); ?> What will the output be?

Access HelloWorld Hi!
Access Hi!
HelloWorld Access
HelloWorld Hi!
Top
  • Follows us our servcies
  • Facebook icon
  • Linkedin icon
  • twitter icon
  • rss icon
  • social icon