Examveda
Examveda

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();

Answer: Option A


This Question Belongs to PHP >> Object Oriented Concept

Join The Discussion

Comments ( 1 )

  1. Vaibhav Rane
    Vaibhav Rane :
    4 years ago

    C

Related Questions on Object Oriented Concept