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 an extension method in c#?
How do I create a dbml file?
What is the difference between iqueryable and ienumerable?
What is default access specifier for class in c#?
Tell me the difference between call by value and call by reference.
What are examples of desktop applications?
What is constructor overloading in c#?
What is the default value of object in c#?
Can mvc be used for desktop applications?
What is a custom attribute?
What is difference between dictionary and hashtable?
What is event delegate in c#?
Describe how a .net application is compiled and executed
What is method overriding in c#
What are the namespace level elements?