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 lazy keyword in c#?
Write a C# program to find the Factorial of n
what is IFormatable
What are the differences between system.string and system.text.stringbuilder classes?
What is sqlconnection in c#?
Is array ienumerable c#?
If casting fails what type of exception is thrown?
Which config file has all the supported channels/protocol?
What is indexer c#?
What is the advantage of dependency injection?
Does c# support const methods, properties, or events?
How big is int16?
What are collection classes?
Is string a primitive data type in c#?
What is difference between tostring() vs convert.tostring() vs (string) cast