+ 1

What are the differences between methods and functions?

10th Jul 2017, 5:03 AM
Latarsan
Latarsan - avatar
6 ответов
+ 4
To add to what ©Bogdan Sass said, functions in a class can also be called Properties, they are the ones that returns or modifies a class' attributes and behavior, CMIIW.
10th Jul 2017, 6:56 AM
Ipang
+ 2
Functions and methods are basically the same thing. Now, one thing i've noticed by looking sites is that Function is anything your program does, and method is the same thing but it is more about those functions that you assign names on it (Those you call by using (Classname).(Methodname)(Parameter if needed) Hope this helps! (Dont forget to check in other websites. I may or may not be teaching you wrong.)
10th Jul 2017, 5:17 AM
MassiveMayhem
+ 1
none. both are the same.
10th Jul 2017, 5:12 AM
Salekin
Salekin - avatar
+ 1
O ok try thanks
10th Jul 2017, 5:16 AM
Latarsan
Latarsan - avatar
+ 1
*O ok thanks
10th Jul 2017, 5:16 AM
Latarsan
Latarsan - avatar
+ 1
A method is a function that is contained within a class. That's about it :)
10th Jul 2017, 6:20 AM
Bogdan Sass
Bogdan Sass - avatar