Bineesh  Viswanath

Bineesh Viswanath

  • 1.1k
  • 1k
  • 608.4k

Private and Public variables in C#

Oct 6 2013 11:52 PM
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?

Brought to you by: JavaScript SDK for Bold BI dashboard and analytics embedding. Free trial.

Answers (6)