InterviewSolution
Saved Bookmarks
| 1. |
Which one of the following is the right way to invoke a method?(a) $object->methodName();(b) object->methodName();(c) object::methodName();(d) $object::methodName();This question was addressed to me by my school teacher while I was bunking the class.This intriguing question comes from Basics of Object-Oriented PHP- 1 topic in portion Object-Oriented PHP of PHP |
|
Answer» Correct choice is (a) $OBJECT->methodName(); |
|