When should I use a property? In general you should use properties if you need them to look and behave like a variable . Properties give you a level of abstraction so you can change the fields while not affecting how they’re used by a class.
When should I use a property? In general you should use properties if you need them to look and behave like a variable . Properties give you a level of abstraction so you can change the fields while not affecting how they’re used by a class.