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
What is deferred execution?
Is enum a class c#?
What is a private class in c#?
What is object type in c#?
Is an array an object c#?
What is the and operator in c#?
What does do in c#?
What is the difference between struct and class in c#?
what are the contents of an assembly ?
What exactly is serverless?
Is there hashmap in c#?
What is a dbml?
How do we achieve encapsulation in c#?
How is the syntax written to inherit from a class in C#?Give an example ?
Classes and structs can be declared as static, is this statement true or false?