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

Can partial class be inherited?

910


Is there hashmap in c#?

919


What is difference between singleordefault and firstordefault?

910


What is an escape sequence?

923


What do you know about Translate Accelerator?

1076


Explain how do you convert a value-type to a reference-type?

867


Can constructor be protected?

892


What is option parameter in C#?

961


What is the use of 0 in c#?

1015


What is a console device?

899


What is the difference between static and constant variables?

1064


Why to use lock statement in c#?

924


What is datarelation c#?

877


Are c# references the same as c++ references?

986


How you will create satellite assemblies?

962