Do interface have accessibility modifier ?

 Posted by Bharathi Cherukuri on 6/5/2012 | Category: ASP.NET Interview questions | Views: 2806 | Points: 40

All elements in Interface should be public. Therefore, by default all interface elements are public and abstract by default.


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