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

Answer Posted / hafiz usman majeed

as by default public access is provided in c-sharp.net
classes and interfaces, and we use interfaces for
accompolishing the purpose of multiple inheritence we must
redefine all of the methods of interface in its inherited
class that implements it so all of these methods should be
publically accessible.

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is static classes?

691


hi all.... i need code snippets for store and retrive tiff fromat images in sqlserver....... kindy provide it.......

1584


Which class does the remote object has to inherit?

823


What are anonymous functions in c#?

709


What is cli in c#?

697


What is the difference between paramaterized constructor and copy constructor?

707


Can we maintain state in webservice?

747


Can you call from an inherited constructor to a specific base constructor if both base class and an inheriting class has a number of overloaded constructors?

730


How to force my .net app to run as administrator on windows 7?

711


What is streamreader/streamwriter class?

702


What does void mean in c#?

712


Is string passed by reference in c#?

696


How are methods overloaded?

740


What is the difference between as and is operators in c#?

672


What is a satellite assembly in c#?

763