Saved Bookmarks
| 1. |
What are Properties in C#? |
|
Answer» Properties in C# are public members of a class where they PROVIDE the ability to access private members of a class. The basic principle of encapsulation LETS you hide some sensitive properties from the USERS by making the variables private. The private members are not accessible otherwise in a class. Therefore, by using properties in C# you can easily access the private members and set their values. |
|