Does interface have access modifier?

 Posted by Rajni.Shekhar on 4/3/2012 | Category: C# Interview questions | Views: 2628 | Points: 40

Interface has public modifier by default but you are not allowed to specify any access modifier in interface.


interface IExample{

public void funExample(); //Error: The modifier 'public' is not valid for this item.
string fun2(string strParam1, string strParam2);//no error

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response