MCQs > IT & Programming > PHP 5 > What Output will be? interface Exp { public function x();} class First implements Exp { public function x() {} } class Second {} function x(Exp $e){ echo get_class($e).'\n'; } x(new First); x(new Second); ?>

PHP 5 MCQs

What will be the output of the following PHP code?

interface Exp { public function x();}

class First implements Exp {

public function x() {}

}

class Second {}

function x(Exp $e){

echo get_class($e)."\n";

}

x(new First);

x(new Second);

?>


Answer

Correct Answer:

First Fatal error

Explanation:

Note: This Question is unanswered, help us to find answer for this one

PHP 5 Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

More PHP 5 MCQ Questions

search

PHP 5 Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it