Can you use all access modifiers for all types?



Can you use all access modifiers for all types?..

Answer / Om Pal Singh

No, not all access modifiers can be used for all types. For example, private and protected access modifiers cannot be used with fields, events, or properties of an interface. Additionally, private and internal are the only legal access modifiers for constructors.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

Does unity use c++ or c#?

1 Answers  


What are circular references?

1 Answers  


WHAT ARE Design Patterns USING IN DOTNET

3 Answers   HP,


what r arraylist? what the use of Hashtables?

4 Answers  


Is null in c#?

1 Answers  


in the nunit test framework, which attribute must adorn a test class in order for it to be picked up by the nunit gui?

1 Answers   Siebel Systems,


What is xpath in c#?

1 Answers  


What does the keyword virtual mean in the method definition?

3 Answers   Ipog Software, Satyam, Visual Soft,


What is xml c#?

1 Answers  


What is list collection in c#?

1 Answers  


What is xml document how do you open it?

1 Answers  


Why do we use abstract class in c#?

1 Answers  


Categories