Vidyalelo
PHP · Q53

Object Oriented Concept

Programming · PHP · question 53

Q53

Which one of the following is the right way to invoke a method?

A.
$object->methodName();
Answer
B.
object->methodName();
C.
object::methodName();
D.
$object::methodName();

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board