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


Please Help Members By Posting Answers For Below Questions

What is difference between array and arraylist c#?

455


Is goto statement supported in c#?

566


What is a collection class in c#?

473


Can an abstract class inherit from another abstract class c#?

543


What's the difference between system.string and system.text.stringbuilder classes?

523






You are creating a custom usercontrol, some of the newly created properties are shown in the properties window. How you can hide a new property named theme from the properties window?

498


What are the differences between events and delegates in c#?

462


What is an icollection in c#?

487


How to update the gui from another thread in c#?

554


What is object pool in .net?

526


What is difference between sleep () and wait ()?

488


Can an abstract class have a constructor c#?

491


Is stringbuilder better than string?

511


What is overriding in c#?

492


what are the Disadvantages of vb

595