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 a console application in c#?

444


How to transpose multi-dimensional array?

551


Illustrate the process of code compilation in c#?

521


What is the difference between firstordefault and first?

471


What is meant by clr?

561






What is console readkey in vb net?

639


Does c# have its own class library?

548


Can we have two main methods in c#?

532


What is interface inheritance in c#?

511


What does m mean in decimal c#?

491


What is interface inheritance?

531


Why to use “finally” block in c#?

526


What is field in c#?

458


Give an example of a ctype.

552


Is there a way to force garbage collection?

494