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
Can main method be final?
What are the two kinds of properties in c#.
How are delegates chosen?
What are PE(Portable Executable)?
Can class be protected in c#?
What is a derived class in c#?
What is the function of .IsDescendent()?
There were a lot of questions asked, so I will list the topic (and add a what is "topic" and know pros/cons). Extreme programming, what is a transaction, various SDLC design approaches, what is a namespace, define a good test case, what is a stored proc, webservice? design patterns? linker? compiler? access modifiers? stack vs. queue? arrays vs. linked lists? sorting algorithms? recursion? OOP principles?
Is dictionary a collection?
What's your approach to fetch static data in your windows form application?
What is a ienumerator?
What is the difference between == and object.equals?
Can we overload indexer in c#?
What is func c#?
What is default c#?