Why can?t you specify the accessibility modifier for
methods inside the interface?
Answer Posted / swapna
They all must be public. Therefore, to prevent us from
getting the false impression that we have choice to access,
so we are not allowed to specify any accessibility, it's
public by default.
Is This Answer Correct ? | 18 Yes | 2 No |
Post New Answer View All Answers
How do you prevent a class from being inherited in c#?
What is enumerable in c#?
Which class comes after the SortedList class?
If I return out of a try/finally in c#, does the code in the finally-clause run?
How would you describe encapsulation in c#?
What's the difference between System.String and System..StringBuilder in C#?
What is msil, and why should developers need an appreciation of it if at all?
Explain the Different types of configuration files in .net?
What is a satellite assembly in c#?
What is difference between arraylist and list in c#?
Why do we use polymorphism in c#?
What is the purpose of escape sequence?
What is session management in c#?
What is an enumerator c#?
What is token in c#?