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 marshalling in c#?

556


What is token in c#?

628


Between windows authentication and sql server authentication, which one is trusted and which one is untrusted?

574


How does inheritance work in c#?

721


What are the two uses of a ‘using’ statement in c#?

571






What is hashtable c#?

542


What is anonymous method in c#?

545


What are examples of desktop applications?

591


If you want to write your own dot net language, what steps you will u take care?

636


What is difference between ienumerable and iqueryable in c#?

578


What is difference between array and arraylist in c#?

528


What is difference between overloading and short circuiting?

559


How does c# generics and c++ templates compare?

556


When Should You Call The Garbage Collector In .net?

652


How will you allow a class to be inherited, but prevent the method from being over-ridden?

600