Programming - PHP - Discussion

You Are Here :: Home > Programming > PHP - Discussion

 



Q.

Consider the following class: Class Insurance { function clsName() { echo get_class($this); } } 8.$cl = new Insurance(); 9.$cl -> clsName(); 10.Insurance::clsName(); Which of the following Lines should be commented to print the class name without errors?  .                          


A. Line 8 and 9 B. Line 10
C. Line 9 and 10 D. All the three lines 8,9, and 10 should be left as it is.

Answer: Option d
Explaination:

 


No Explanation




Discussion

Your Comments Goes here...
NameDiscussion