What is the diff between Variable and Properties ?
Both can have the same capability like read and write. Then why it is different.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Pankajkumar PatelPosted Sep 11, 2020, 9:14 AM
Ajay GohilPosted Sep 10, 2020, 11:26 PM
Property is a member which provides a flexible mechanism to read, write or compute the value of private field just like the Jave objects. Properties can be used as a public data members, but are special methods known as getters and setters.
Basically, if a variable doesn’t have getters and setters it cannot be concluded as property but if it does then it is property/properties.
Aman GuptaPosted Sep 10, 2020, 1:17 PM
Rajanikant HawaldarPosted Sep 10, 2020, 8:43 AM
Vikas JhaPosted Sep 10, 2020, 6:24 AM