1.

Which one of the following is not a valid class name?(a) ShopProduct(b) Shopproduct(c) Shopproduct1(d) 1shopproductI had been asked this question by my school principal while I was bunking the class.Origin of the question is Object Basics-1 in division Objects and Databases in PHP of PHP

Answer»

Right CHOICE is (d) 1shopproduct

To elaborate: You declare a class with the class keyword and an arbitrary class name. Class names can be any combination of numbers and letters, although they must not BEGIN with a NUMBER.



Discussion

No Comment Found

Related InterviewSolutions