+ 1

What is the diffrence between functions and methods? Are they same?

5th Jul 2017, 4:40 AM
Viraj Singh
Viraj Singh - avatar
3 odpowiedzi
+ 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.
5th Jul 2017, 3:31 PM
Pragyanshu Sharma
Pragyanshu Sharma - avatar
+ 7
In general programming, 'method' are just 'function' attached to a specific object... The difference is only semantical ;)
5th Jul 2017, 4:42 AM
visph
visph - avatar
+ 1
I like to think that functions has a return type and methods not, but that's only me I guess
5th Jul 2017, 5:46 AM
Limitless
Limitless - avatar