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

What is the value which is accepted by all data types ?

520


Can you inherit from a static class in c#?

481


What will a loop recorder show?

549


What is difference between ilist and list in c#?

484


How many bytes is a long c#?

463






What does exclamation mark mean c#?

537


What is type safe code?

476


What do you mean by jagged arrays in c#?

485


What does console mean c#?

497


What is the difference between and xml documentation tag?

524


Compare and contrast between the System.Array.CopyTo() and Clone()?

551


Explain nullable types in c#?

541


When should I use static in C#?

557


what are some characteristics of an array?

525


What is the difference between constants and read-only?

477