+ 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?

11th Oct 2020, 7:23 PM
Sandeep
Sandeep - avatar
4 RĂ©ponses
+ 3
Property and veriable are not diffrent things Just someone calls it variable and someone calls it property
11th Oct 2020, 7:27 PM
Sumit Programmer😎😎
Sumit Programmer😎😎 - avatar
+ 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.
11th Oct 2020, 8:31 PM
Jayakrishna 🇼🇳
0
caca
22nd Oct 2020, 2:46 AM
Daniel Ruvalcaba
Daniel Ruvalcaba - avatar