+ 4

what is the difference between method and funtion?

5th Jan 2017, 5:03 PM
Arlesh Maharjan
Arlesh Maharjan - avatar
4 Respuestas
+ 7
Object functions are called methods.
5th Jan 2017, 5:04 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 6
To extend what Valentin said, functions and method are fundamentally the same, but functions are called methods when they're specific to an object.
5th Jan 2017, 5:48 PM
Dao
Dao - avatar
+ 3
thanks both of you
5th Jan 2017, 5:56 PM
Arlesh Maharjan
Arlesh Maharjan - avatar
+ 1
methods are like functions that are parts of an object.
5th Jan 2017, 8:19 PM
jpqz
jpqz - avatar