+ 7
what is difference between methods and functions?
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
+ 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).
+ 2
It's the same
+ 1
That's same thing, mathematicians call it functions and programmers call it methods.
+ 1
method is just a way (as per english also)...the implementation of that way is called function....
- 3
I think methods don't need parameters and don't need to return a result (void), so... do functions do the same?