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


Please Help Members By Posting Answers For Below Questions

How to implement singleton design pattern in c#?

467


What is application c#?

491


How does split work in c#?

482


Why c# is called type safe language?

459


Is it possible to inherit multiple interfaces?

539






What is static class in C#?

566


What is strong name assembly?

454


What is hashtable in c# net with example?

467


How do I edit a dll file?

451


What are the steps to make an assembly to public?

496


Please write a program to display “welcome to bestinterviewquestion.com” in c#?

527


What is interface inheritance in c#?

513


Difference between abstract classes and interfaces

509


What is for loop in c#?

501


What is c sharp used for?

492