2
Answers

Properties vs Public variables inside the class

Santosh Yadav

Santosh Yadav

11y
1.2k
1
Please demonstrate me what is the actual differences b/w properties and variables and why should we use properties in side a class instead of variables ?
I think variables can fulfill our all the requirements then what is the need to use properties ? I'm searching about this topic from a couple of days but not get the satisfaction from the solutions.

Thanks & Regards

Santosh Kumar Yadav

Software Developer
Answers (2)