Elance Exams Answers PDF file

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

What will be the output of the following code: <?php class A {} class B {} class C extends B {} class D { function sayHello (A $argument) { echo '$argument is an instance of A'; } function sayHello (B $argument) { echo '$argument is an instance of B'; } } $d = new D(); $c = new C(); $d->sayHello($c);

Call to undefined method D::sayHello()
$argument is an instance of A
$argument is an instance of B
PHP Fatal error
Top
  • Follows us our servcies
  • Facebook icon
  • Linkedin icon
  • twitter icon
  • rss icon
  • social icon