Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / tsahi

Interfaces are designed to make sure a class which
implements them exposes a certain set of methods. Because
these methods are exposed, they must be public. therefore,
there is no point in implementing a method from an interface
which will be anything other than public. So all methods in
an interface are always public.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is generic delegates in c#?

963


What is difference between .net and c#?

937


Describe an abstract class?

991


How do you declare an interface in c#?

922


What do you mean by delegates and explain different types of delegates?

966


What are Memory foot print of an exe?

1024


How to assign Null value to Var?

988


How do you sort a list in c#?

861


What are the advantages of using assemble language programming?

941


What are the uses of delegates in c#?

1046


What is the data type for bit in c#?

963


What is the relation between classes and objects?

962


Explain about ODP.net

1241


Explain the types of assemblies in .net?

956


Is string nullable c#?

998