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
Can you describe iuknown interface in short?
What is tpl in c#?
Are private members inherited in c#?
How do you serialize an object?
What is the difference between returning iqueryable vs ienumerable?
What is windows form in c#?
Why do we use virtual methods in c#?
Can abstract class have private constructor c#?
What is an iqueryable in c#?
Why data types are important?
Is hashset ordered c#?
How are delegates chosen?
How Reflection is used and what it's significance ?
Is it not possible to store a boolean value as a variable?
Why dependency injection is used in c#?