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
What is marshalling in c#?
What is token in c#?
Between windows authentication and sql server authentication, which one is trusted and which one is untrusted?
How does inheritance work in c#?
What are the two uses of a ‘using’ statement in c#?
What is hashtable c#?
What is anonymous method in c#?
What are examples of desktop applications?
If you want to write your own dot net language, what steps you will u take care?
What is difference between ienumerable and iqueryable in c#?
What is difference between array and arraylist in c#?
What is difference between overloading and short circuiting?
How does c# generics and c++ templates compare?
When Should You Call The Garbage Collector In .net?
How will you allow a class to be inherited, but prevent the method from being over-ridden?