+ 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.
3 Answers
+ 1
If anyone find any changes to the above post. please let me know..
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.
0
yes I got it