Why can?t you specify the accessibility modifier for
methods inside the interface?
Answer Posted / kishore anumala
Always the access specifiers for the method in an interface
is public. We cannot implement the methods of interface if
the access specifier is other than public as we will be
left with errors like "members cannot access due to
protection level".
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is the main purpose of linq?
What is using keyword?
Explain about c# language.
Explain deadlock?
Define an abstract class?
What are async and await?
Can constructor be overloaded in c#?
What is dynamic dispatch?
What is float in unity?
What is default boolean value in c#?
What is the difference between first and firstordefault?
what is generics? can u explain 5 to 6 examples on generics that covers class,method,structure,list,delegates?
What is datasource c#?
Is c# a backend language?
When should we use sealed class in c#?