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
Explain what is copy constructor?
What does console writeline do?
What .exe means?
What is dll in vb.net?
Is string a data type in c#?
what is virtual method in c#?
Explain what are three test cases you should go through in unit testing?
Does a loop recorder have to be removed?
What is the difference between abstraction and encapsulation in c#?
What is default access specifier for class in c#?
What is hashtable in c# with example?
Is predicate a functional interface?
What is disco?
What are Indexers in C#?
What is array class in c#?