what is accessspecifier and explation each with example?
Answers were Sorted based on User's Feedback
Answer / chaithanya.a
These are also modifiers used to define scope of a type as
well as their members i.e who can access them who can't
c#supports 5 types
1.private
2.internal
3.protected
4.protected internal
5.public
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / 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 |
What are the properties in c#?
What is the signature of a method?
What is an abstract class c#?
What is binary search tree in data structure?
What is garbage collector and where should you use in .NET?
What is a console in c#?
What are lambda expressions used for?
What is service contract
What are the different states of a thread?
Classes and structs can be declared as static, is this statement true or false?
Define a strong name in .net?
What is the difference between webgarden and webfarm?