0
What are the difference between functions and methods
4 Answers
+ 2
they are the same thing: the difference lies in the fact that the function does not belong to any class (only functionality of c and c ++), while a method necessarily belongs to a class (example c# and java)
+ 1
Methods are the object oriented names of functions. They are just functions within classes.
0
Are they differentiated in terms of return type? Emanuele
0
I only know c, c ++ and c#, and in these languages there is no difference, even in the type of return. they have exactly the same functionality