6
Answers

Private and Public variables in C#

Photo of Bineesh  Viswanath

Bineesh Viswanath

12y
2.7k
1
Sir, I need your help in the following:-

I declare a member variable as private. Then provide access to them with public modifier,

what is the benefit of declaring a member variable as private?

could you give me a example?

Answers (6)