Access the full text.
Sign up today, get DeepDyve free for 14 days.
CHAPTER 7 ■ ■ ■ Member Accessibility and Overloading One of the important decisions to make when designing an object is how accessible to make the members. In C#, you can control accessibility in several ways. Class Accessibility The coarsest level at which accessibility can be controlled is at the class. In most cases, the only valid modifiers on a class are public, which means everybody can see the class, and internal. The exception to this is nesting classes inside of other classes, which is a bit more complicated and is covered in Chapter 8. The internal modifier is a way of granting access to a wider set of classes without granting access to everybody, and it’s most often used when writing helper classes that should be hidden from the ultimate user of the class. In the .NET runtime world, internal equates to allowing access to all classes that are in the same assembly as this class. ■Note In the C++ world, such accessibility is usually granted by using friends, which provide access to a specific class. The friend specifier provides greater granularity in specifying who can access a class, but in practice the access provided by internal is
Published: Jan 1, 2005
Read and print from thousands of top scholarly journals.
Already have an account? Log in
Bookmark this article. You can see your Bookmarks on your DeepDyve Library.
To save an article, log in first, or sign up for a DeepDyve account if you don’t already have one.
Copy and paste the desired citation format or use the link below to download a file formatted for EndNote
Access the full text.
Sign up today, get DeepDyve free for 14 days.
All DeepDyve websites use cookies to improve your online experience. They were placed on your computer when you launched this website. You can change your cookie settings through your browser.