adspace
Answer Posted / Sandeep Tiwari
In C#, properties are used to provide a simpler syntax for accessing and modifying private fields. The get and set keywords allow developers to define the behavior of how a field can be retrieved (getter) or assigned a new value (setter). This can include validation, transformation, and encapsulation of data.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers