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

Answer Posted / swapna

They all must be public. Therefore, to prevent us from
getting the false impression that we have choice to access,
so we are not allowed to specify any accessibility, it's
public by default.

Is This Answer Correct ?    18 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What language do desktop applications use?

472


How do I convert a string to an int in c#?

514


What is a linq in c#?

477


What are methods in C#?

563


What is difference between write and writeline in c#?

480






What does console readline do in c#?

477


What is difference between private, protected, and public in C#?

552


what is an event? Define delegate?

524


What do you mean by casting a data type?

540


What exactly is serverless?

422


List down the fundamental oop concepts?

498


How to sort an int array in c#?

527


How garbage collection deals with circular references.

463


What is Implementation inheritance

514


write code for inserting and updating recoards in sql server database using connected architecture & records shoulds displayed in grid view ( use c# )

1921