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

Explain what is copy constructor?

805


What does console writeline do?

695


What .exe means?

710


What is dll in vb.net?

703


Is string a data type in c#?

681


what is virtual method in c#?

936


Explain what are three test cases you should go through in unit testing?

740


Does a loop recorder have to be removed?

812


What is the difference between abstraction and encapsulation in c#?

720


What is default access specifier for class in c#?

696


What is hashtable in c# with example?

713


Is predicate a functional interface?

731


What is disco?

722


What are Indexers in C#?

780


What is array class in c#?

647