+ 1

What is the difference between methods, properties and variables?

I just don't get it. How do I know whether the thing I'm writing is variable or property or method or anything else?

16th Sep 2020, 6:43 AM
GreenApple
GreenApple - avatar
3 Respuestas
+ 5
* About property: A property is a variable defined inside a class as a member, but this term excludes variables defined inside methods, as they are local variables, recognizable only within the method's scope. * About method: A method is a function defined inside a class.
16th Sep 2020, 6:53 AM
Ipang
+ 3
Thanks a million
16th Sep 2020, 6:55 AM
GreenApple
GreenApple - avatar
+ 3
No sweat buddy 👌
16th Sep 2020, 6:57 AM
Ipang