+ 1
What is the diffrence between functions and methods? Are they same?
3 Respostas
+ 1
there is almost no difference bw them but you can say that, methods pass arguments only but functions can pass argument as well as value.
Both terminologies are diff context in cpp and java respectively.
+ 7
In general programming, 'method' are just 'function' attached to a specific object... The difference is only semantical ;)
+ 1
I like to think that functions has a return type and methods not, but that's only me I guess