O'Reilly logo

Application Development Using Visual Basic® and .NET by Dana L. Wyatt, Peter Thorsteinson, Robert J. Oberg

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Access Control

VB.NET has two means for controlling accessibility of class members. Access can be controlled at both the class level and the member level.

Class Accessibility

An access modifier can be placed in front of the Class keyword to control which code can get at the class at all. Access can be further restricted by member accessibility, discussed in the next subsection.

Public

The most common access modifier of a class is Public, which makes the class available to all code in the program. Whenever we are implementing a class that all code can use, we want to make it Public.

Friend

The Friend modifier makes a class available within the current assembly, which can be thought of as a logical EXE or DLL. (Assemblies were introduced in Chapter ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required