Q:

What are Properties in C#?

0

What are Properties in C#?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

C# properties are members of a C# class that provide a flexible mechanism to read, write or compute the values of private fields, in other words, by using properties, we can access private fields and set their values. Properties in C# are always public data members. C# properties use to get and set methods, also known as accessors, to access and assign values to private fields.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

C# Interview Questions and Answers,You Need To Know

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
What are accessors?... >>
<< Can a private virtual method can be overridden?...