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 garbage collection? How to force garbage collector to run?
Contrast between an interface and abstract class?
What is native image generator (ngen.exe)?
What is Implementation inheritance and interface inheritance?
Write a program in C# for checking a given number is PRIME or not.
What is reflection c#?
what is the difference between convert.tostring() and tostring() functions ?
Can you specify an access modifier for an enumeration?
What is distribute by in hive?
Is datetime value type c#?
How big is an int16?
In which format you can pass the value in the sleep function?
What is default constructor in c#?
What is console used for?
Are classes passed by reference in c#?