+ 1

Difference between function and method

Function is a re-useable code Method is also a re-useable code Function does not change the value which object contains. But method can change the value in many ways. Function belongs to object is called as method. methods behaviour depends upon the type of the data.

14th Mar 2017, 4:45 AM
Abin Singh R
Abin Singh R - avatar
3 Answers
+ 1
If anyone find any changes to the above post. please let me know..
14th Mar 2017, 4:46 AM
Abin Singh R
Abin Singh R - avatar
0
Technically, a method IS a function. The value of an object can be change in any function, so be careful with that. Also, a method call is (internally) represented as a function call which first parameter is the object you are working on.
14th Mar 2017, 6:23 PM
Amaras A
Amaras A - avatar
0
yes I got it
15th Mar 2017, 1:29 AM
Abin Singh R
Abin Singh R - avatar