Why can?t you specify the accessibility modifier for methods
inside the interface?
Answer Posted / guest
They all must be public. Therefore, to prevent you from
getting the false impression that you have any freedom of
choice, you are not allowed to specify any accessibility,
it?s public by default
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What is constructors, explain with syntax
How does c# generics and c++ templates compare?
What is an assembly qualified name
what is IEquatable
Is dictionary reference type c#?
Why we use methods in c#?
What is interface inheritance?
Why c# is type safe?
What is inumerable?
If c# destructors are so different to c++ destructors, why did ms use the same syntax?
Explain the difference between and xml documentation tag?
Difference between abstract classes and interfaces
Where is the keyword void used?
Explain About Web.config
Do vs while c#?