What are the access-specifiers available in c#?
Answer Posted / archana
1. public - The member can be accessed from anywhere
2. internal - The member can only be accessed from type it
originates from or other types in the same assembly
3. protected - The member can only be accessed from the type
it originates from or from detrieved types of the
originating type
4. private - The member is only accessible by other members
within the type it originates from.
Is This Answer Correct ? | 52 Yes | 65 No |
Post New Answer View All Answers
What is sealed class in c#?
Why do we need ienumerable in c#?
Write a sample code to write the contents to text file in c#?
What is the purpose of namespace?
What is serialization and deserialization in c# with example?
What is hashtable in c# with example?
What is the advantage of static class in c#?
How assembly versioning in .NET prevent DLL Hell problem?
What is written in c#?
How to exclude a property from xml serialization?
What is null propagation c#?
Are classes passed by reference in c#?
What is the difference between const and readonly in c#.net?
How many keyword present in C# language ?
Why c# is called c sharp?