How to explain method calls?

Posted by forki23 on Stack Overflow See other posts from Stack Overflow or by forki23
Published on 2010-03-15T09:04:15Z Indexed on 2010/03/15 9:09 UTC
Read the original article Hit count: 300

Filed under:
|

Hi,

let's consider a small method:

int MyFunction(string foo, int bar)
{
  ...
}

and some calls:

MyFunction("",0)
int x = MyFunction(foo1,bar1)

How would you explain this to a non-technical persons? Has anybody a nice metaphor?

I tried to explain method calling (or function application) several times, but I failed. Seems I can't find the right words here.

Regards, forki

© Stack Overflow or respective owner

Related posts about method-call

Related posts about functions