Encapsulating Data with Properties

It is generally desirable to designate the member variables of a class as Private. This means that only member methods of that class can access their value. You make member variables Private to support data hiding.Data hiding is part of the encapsulation of a class, and allows you to change how you store your data without breaking other classes that interact with your class.

Get Programming Visual Basic 2005 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.