MCQs > IT & Programming > LAMP > Which lines of the class mentioned below should be commented to execute the code without errors? 1 class Insurance 2 { 3 function clsName() 4 { 5 echo get_class($this); 6 } 7 } 8 $cl = new Insurance(); 9 $cl->clsName(); 10 Insurance::clsName();

LAMP MCQs

Which of the following lines of the class mentioned below should be commented to execute the code without errors?
1        class Insurance
2        {
3           function clsName()
4           {
5               echo get_class($this);
6           }
7        }

8        $cl = new Insurance();
9        $cl->clsName();
10        Insurance::clsName();

Answer

Correct Answer: Line 10

Explanation:

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

LAMP Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

LAMP Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it