In OOP, what do call it when you do:
$o = new ClassInstance();
$o->someFunction($p);
For example, I would say I’m passing the parameter p to the function someFunction. Easy.
But how do you articulate the calling of a function in the class object, ClassInstance? You’re not really passing the function someFunction to the object ClassInstance…. so would you say: “Call the someFunction function in the ClassInstance object?”
Thanks.
“Call method
someFunctionfrom object$o(which is an instance of classClassInstance), passing$pas an argument.”.Rephrasing for clarity:
“Call method
someMethodfrom object$instance(which is an instance of classClassName), passing$pas a parameter (or argument)”.