Why can?t you specify the accessibility modifier for methods
inside the interface?
Answers were Sorted based on User's Feedback
Answer / guest
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 ? | 4 Yes | 1 No |
Answer / kumar vaibhav
Because Interface provides different implementation within calling class.So it should be public.
Is This Answer Correct ? | 2 Yes | 0 No |
what is main function of alternate teamplate of datalist?
What is an extension method in c#?
What Is An Interface Class?
Explain the difference between .net and c#?
Types of polymerphism and explain about dynamic polymerphism?
What types of object can I throw as exceptions?
What is signature c#?
What is a dbml?
What is a datacontract?
What do you understand by an Implicit Variable?
How to use delegates with events?
in a town the percentage of total men is 52. the percentage of total literacy is 48. if total percentage of literate men is 35 of total population. write a program to find out the total no of illiterate men and women.