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

Answer Posted / kumar vaibhav

Because Interface provides different implementation within calling class.So it should be public.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the 3 types of properties in c# with an example?

736


What is difference between constants and read-only?

642


What is arraylist?

697


What is parameters in c#?

690


What is data bind in c#?

692


What is ildasm.exe used for?

727


I wish to create a windows application to perform a similar function as that of the "Search" which is provided to look for related files and folders in the System.. What steps must i follow??

1704


How would you describe encapsulation in c#?

674


Is xml tags are case sensitive?

655


Is c# and c sharp same?

638


Explain how to add controls dynamically to the form using c#.net.

731


How many static constructors are allowed in a class?

654


Can a class have static constructor?

739


How do I create a .exe file?

702


What are the types of serialization?

725