Why can?t you specify the accessibility modifier for
methods inside the interface?

Answer Posted / kishore anumala

Always the access specifiers for the method in an interface
is public. We cannot implement the methods of interface if
the access specifier is other than public as we will be
left with errors like "members cannot access due to
protection level".

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can hashtable have duplicate keys?

681


What is datarelation c#?

684


What do you mean by hashtable c#?

764


Why we use anonymous methods in c#?

724


Can constructor be overloaded in c#?

664


Why do you need boxing in c#?

679


How are delegates chosen?

666


What is the difference between ref and out parameters in c#?

711


What are the 2 broad classifications of fields in c#?

735


what is IComparable

784


Which is the base class in c#?

709


What is indexer c#?

662


What are types in c#?

695


What is data set in c#?

738


Contrast System.String and System.Text.StringBuilder classes?

735