What is the difference between a field and a property in c#?
Answer Posted / Atul Singh
In C#, fields are simple data members of a class that can be directly accessed by code outside of the class. Properties, on the other hand, provide an abstract interface for accessing and manipulating private fields. They can include additional functionality such as validation or automatic conversion.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers