Could someone explain something I don't quite 'get' about OOP?

Associate
Joined
28 Jun 2005
Posts
2,174
Location
Behind you
Hi experts,

I'm learning OOP using C# and I get the basic concepts of OOP. There is one thing I don't get though when defining a class:-

clas MyClass
Private Int _MyVar

Public Int MyVar


Can someone explain the point of private properties when there is a public version in the same class?

Thanks
 
Back
Top Bottom