+ 1
What are the differences between methods and functions?
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.
+ 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.)
+ 1
none. both are the same.
+ 1
O ok try thanks
+ 1
*O ok thanks
+ 1
A method is a function that is contained within a class. That's about it :)