Why can?t you specify the accessibility modifier for methods
inside the interface?
Answer Posted / umesh
They all must be public. Therefore, to prevent you from
getting the false impression that you have any freedom of
choice, you are not allowed to specify any accessibility,
it?s public by default.
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
write a c# program add two matrix with input number ?
What is ado c#?
How does a while loop work?
What is new method in c#?
How do you specify a custom attribute for the entire assembly?
How do I create multifile assembly?
What is native image generator (ngen.exe)?
Can you change the value of a constant filed after its declaration?
My switch statement works differently! Why?
Can a static class have a constructor c#?
What is private variable?
Can the nested class access, the containing class. Give an example?
What is constants in c#?
What is a singleton unity?
What are c# attributes and its significance?