php - OPP nomenclature question: object->function($param) -


in oop, call when do:

$o = new classinstance();  $o->somefunction($p); 

for example, i'm passing parameter p function somefunction. easy.

but how articulate calling of function in class object, classinstance? you're not passing function somefunction object classinstance.... say: "call somefunction function in classinstance object?"

thanks.

"call method somefunction object $o (which instance of class classinstance), passing $p argument.".

rephrasing clarity:

$instance = new classname(); $instance->somemethod($p); 

"call method somemethod object $instance (which instance of class classname), passing $p parameter (or argument)".


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -