what is accessspecifier and explation each with example?
Answer Posted / pranoti moghe
There are basically 5 access specifiers in .net...
Public - meaning members can be accessed from anywhere..even outside the assembly...
Private - meaning members cannot be accessed outside a class..
Protected - meaning members can be accessed in that class and to the derived classes....
Protected internal
Internal
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Why static constructor is parameterless in c#?
Which operator cannot be overloaded in c sharp?
What is static variable in c#?
what is the syntax to inherit from a class in c#?
Why use a singleton instead of static methods?
How do partial classes work in c#?
What is a singleton unity?
What is encapsulation in csharp?
what is collections in .net? why we use?
Can hashtable have duplicate keys in c#?
Major difference between Basic httpbinding and WShttpbinding?
What are class fields?
Why are mutable structs evil?
What is datagridview in c#?
How to sign an assembly with strong name?