0

What are the difference between functions and methods

11th Aug 2018, 2:41 PM
Maha
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)
11th Aug 2018, 3:13 PM
Emanuele
Emanuele - avatar
+ 1
Methods are the object oriented names of functions. They are just functions within classes.
11th Aug 2018, 11:56 PM
Dominic Nicholas
Dominic Nicholas - avatar
0
Are they differentiated in terms of return type? Emanuele
11th Aug 2018, 3:52 PM
Maha
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
11th Aug 2018, 4:28 PM
Emanuele
Emanuele - avatar