What is the Scope of public/private/friend/protected/protected friend?
Scope of public/private/friend/protected/protected friend.
Visual Basic/Visual C#
Public/public All members in all classes and projects.
Private/private Members of the current class only.
Friend/internal All members in the current project.
Protected/protected All members in the current class and in classes derived from this member’s class. Can be used only in member definitions, not for class or module definitions.
Protected Friend/protected internal All members in the current project and all members in classes derived from this member’s class. Can be used only in member definitions, not for class or module definitions.
Wednesday, 26 June 2013
Scope of public/private/friend/protected/protected friend
Published June 26, 2013
Artikel Terkait
- 1.What is method overloading? Method Overloading means to have two or more methods with
- What is .NET / .NET Framework? It is a Framework in which Windows applications may be
- Directives --------------- Directives are used to specify the settings used by the page o
- What is garbage collection? Garbage collection is a CLR feature which automatically manag
- Can we run DOT.NET in UNIX platform? One of the disadvantages of using Visual Studio.NET
- 31. What are the inheritance types? a ) 1. single level inheritance 2. multi level inhe
Subscribe to:
Post Comments (Atom)
EmoticonEmoticon