

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What are the different access specifiers in C#.NET?
The following are the access specifiers supported by C#.NET −
Public Access Specifier
It allows a class to expose its member variables and member functions to other functions and objects.
Private Access Specifier
Private access specifier allows a class to hide its member variables and member functions from other functions and objects. Only functions of the same class can access its private members.
Protected Access Specifier
Protected access specifier allows a child class to access the member variables and member functions of its base class.
Internal Access Specifier
Internal access specifier allows a class to expose its member variables and member functions to other functions and objects in the current assembly.
Protected Internal Access Specifier
The protected internal access specifier allows a class to hide its member variables and member functions from other class objects and functions, except a child class within the same application.
- Related Questions & Answers
- What are access specifiers in C#.NET?
- What are different format specifiers used in C language?
- What are the differences between protected and default access specifiers in Java?
- What are the differences between public, protected and private access specifiers in C#?
- What are the different access technologies in computer networks?
- What are type specifiers in C++?
- What are different types of multiple access protocols?
- What are different types of access modifiers available in C#?
- What are different types of RAM (Random Access Memory) in computer architecture?
- What are the different types of DOM available to access and modify content in JavaScript?
- What are the differences between .com and .net domains?
- What are the differences between .net and .org domain?
- What are Remote Access Trojans?
- What are access modifiers in C++?
- What are the different computer languages?