+ 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?
3 odpowiedzi
+ 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.
+ 3
Thanks a million
+ 3
No sweat buddy 👌