Introduction:
In my previous articles i explained WPF architecture overview,Working or Consuming three layered architecture in .Net Windows Application using C#,Asp.Net Ajax Tutorial, Asp.Net validation controls Tutorial and various articles on WPF and Asp.Net. Now i will explain Access Specifiers in C# in pictorial format.
Description:
Access specifiers used to define the scope of types as well as their members i.e who can access it and who can not.
C# supports five access specifiers
- Private
- Protected
- Internal
- Protected Internal
- Public
![]() | |
Access Specifiers Accessing Levels in diagram format |
Here is the five cases
Case1: Accessing members within the same class
Case2: Accessing members within child class of same Project.
Case3: Accessing members within non - child class of same project.
Case4: Accessing members within child class of other project.
Case5: Accessing members within non- child class of other project.
You can find in details about each of these five access specifiers with examples at Access Specifiers in C#
Conclusion:
I hope this will help you to get overview of access specifiers with in short time.
Related Tutorials
- Architecture of WPF.
- Creation of Three Tier Architecture in .Net Application.
- Difference between App.config and Web.Config
- Asp.Net Validation Controls Tutorial
- Asp.Net Ajax Tutorials
- Difference between Machine.Config and Web.Config in Asp.Net Framework.
- Basic Drawings and Shapes in WPF.
- How to read and write key values from and to App.config Settings file .Net Windows Application.
- How to Use RangeValidator Control in Asp.Net with Example.
- Asp.Net Ajax Server Controls, Ajax Control Toolkit Download and Installation Tutorial.
- How to Use ViewState in Asp.Net(State Management Techniques).
- How to use Hidden Field in Asp.Net with Example(State Managemet Techniques).
- Beginners Tutorial on How to use QueryStrings in Asp.Net(State Management Techniques).
- Asp.Net Cookie Usage Overview with example(State Management Techniques).
- Access Specifiers or Modifiers in C# with example(Oops Concept).
No comments:
Post a Comment
Please Give your Valuable Suggestions,Questions and Comments to improve my blog.