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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between Enum and Struct?

633


What is an interface class? Give one example of it

571


What is the namespace for datatable in c#?

594


Which are the loop types available in c#?

575


How many bytes is a long c#?

551






How big is a 64 bit integer?

583


Explain the difference between access specifier and access modifier in c#?

577


Why dataset is used in c#?

613


What are concrete classes?

568


What is difference between ilist and list in c#?

553


Why do we Need of static class in c#?

721


How many bytes is a char c#?

565


Is c# an open source language?

646


What is a event in c#?

539


What are the return types in c#?

599