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

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -