+ 2
I do not really understand the difference between functions and methods.please help
5 Answers
+ 3
I think the term method is used in OOP whereas function is used in general. Long time ago I learned that functions have a return value... I think there are several definitions.
+ 1
They're basically the same, except methods are inside objects, whereas functions aren't.
+ 1
they are Just same thing...fuction which are declare in any class and called through object or class...! Known as method...
+ 1
A function is like a procedure. A simple algorithm. There are different methods to create, display, and solve a function. For example, f(x) = 1 + 1 is a very simple function. Some methods for the function are: y = 1 + 1(just a different method of writing it), entering it into a calculator(a method of solving it), or writing the function on paper(a different way of creating it)!
0
they are pretty much the same thing