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

What are mutable and immutable types in c#?

493


What is the use of constructor in c# with example?

434


What is property in c#?

538


What are extender provider components? Explain how to use an extender provider in the project.

507


What is console readkey in vb net?

645






What are the principles of delegation?

490


What is out in c#?

518


Does c# support a variable number of arguments?

614


Why to use “using” in c#?

559


What are instance fields in c#?

544


In which format you can pass the value in the sleep function?

547


What is the difference between hashtable and dictionary?

509


Do while loops yes or no c#?

526


How do I create a .exe file?

485


Does the variables of a private class-level inherited?

561