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
If multiple interfaces are inherited and they have conflicting method names; What will happen ?
What is out in c#?
What is the difference between a function and a method?
Why do we use inheritance in c#?
What is the difference between interface and abstract class in c#?
What is the use of 'using' statement in c#?
What is the difference between proc. Sent by val and by sub?
Explain about ODP.net
What is the difference between == and object.equals?
What is class sortedlist underneath?
Can struct have constructor c#?
What is winforms c#?
if we are updating a database using thread, and mean while application crashes or thread being aborted then what will happen in Database? Rollback or Database will be updated? Please explain with different scenario.
What is the difference between new and override in c#?
How do I register my code for use by classic com clients?