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

Answer Posted / kishore anumala

Always the access specifiers for the method in an interface
is public. We cannot implement the methods of interface if
the access specifier is other than public as we will be
left with errors like "members cannot access due to
protection level".

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we have only “try” block without “catch” block in c#?

539


Can partial class be inherited?

580


Can you access a hidden base class method in the derived class?

589


What is a partial method?

592


What is the use of static in c#?

566






What do you mean by the delegate in c#?

597


What is the correct way of declaring an xml namespace?

548


What are floating point numbers?

565


Why singleton pattern is used in c#?

602


Does c# provide copy constructor?

663


What is difference between Enum and Struct?

632


Explain about c# language.

686


C# called c sharp why?

645


If you want to convert a base type to a derived type, what type of conversion do you use?

573


Describe two uses of the “using” statement during the operation of c#?

623