+ 2

I do not really understand the difference between functions and methods.please help

8th Feb 2017, 5:46 PM
Kelvin Gathungu
Kelvin Gathungu - avatar
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.
8th Feb 2017, 10:07 PM
Tashi N
Tashi N - avatar
+ 1
They're basically the same, except methods are inside objects, whereas functions aren't.
8th Feb 2017, 5:52 PM
DaemonThread
DaemonThread - avatar
+ 1
they are Just same thing...fuction which are declare in any class and called through object or class...! Known as method...
8th Feb 2017, 6:02 PM
Shreyance Gupta
Shreyance Gupta - avatar
+ 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)!
8th Feb 2017, 10:36 PM
Brant Roun
Brant Roun - avatar
0
they are pretty much the same thing
8th Feb 2017, 5:48 PM
Edi Lipovac
Edi Lipovac - avatar