+ 7

what is difference between methods and functions?

17th Jul 2016, 6:08 PM
kishore babu nalluri
kishore babu nalluri - avatar
6 Antworten
+ 14
A method is similar to a function, but is internal to part of a class. The term method is used almost exclusively in object-oriented programming. But technically speaking, there is no difference
17th Jul 2016, 6:55 PM
Itay Almog
Itay Almog - avatar
+ 4
Methods are functions members of a class. Method is a concept of OOP. In Java, a method is implemented as a function defined within a class. BTW, functions with no return values, are called procedures (method or not).
18th Jul 2016, 10:46 PM
gorlok
+ 2
It's the same
19th Jul 2016, 10:19 AM
FreakManMega
+ 1
That's same thing, mathematicians call it functions and programmers call it methods.
18th Jul 2016, 10:02 AM
Lule
+ 1
method is just a way (as per english also)...the implementation of that way is called function....
21st Jul 2016, 5:50 PM
saurabh upadhyay
- 3
I think methods don't need parameters and don't need to return a result (void), so... do functions do the same?
18th Jul 2016, 4:47 AM
Lhoussine El manoug
Lhoussine El manoug - avatar