+ 4
What is the difference between a property and a variable
I have a confusion about understanding Property and Variables..anyone can explain exactly difference?
4 RĂ©ponses
+ 3
Property and veriable are not diffrent things Just someone calls it variable and someone calls it property
+ 2
Slight difference:
A property may be a data variable or a method of a class.
Ex: math class PI is a constant variable, pow() is function, both properties of math class.
A variable is just name given to a location of a memory.
0
caca