Why can?t you specify the accessibility modifier for methods
inside the interface?

Answers were Sorted based on User's Feedback



Why can?t you specify the accessibility modifier for methods inside the interface?..

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

Why can?t you specify the accessibility modifier for methods inside the interface?..

Answer / kumar vaibhav

Because Interface provides different implementation within calling class.So it should be public.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More C Sharp Interview Questions

what is main function of alternate teamplate of datalist?

0 Answers  


What is an extension method in c#?

0 Answers  


What Is An Interface Class?

0 Answers   Siebel Systems,


Explain the difference between .net and c#?

0 Answers  


Types of polymerphism and explain about dynamic polymerphism?

5 Answers  


What types of object can I throw as exceptions?

0 Answers  


What is signature c#?

0 Answers  


What is a dbml?

0 Answers  


What is a datacontract?

0 Answers  


What do you understand by an Implicit Variable?

0 Answers   CGI,


How to use delegates with events?

0 Answers  


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.

3 Answers   HCL,


Categories