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

Why do we use reflection in c#?

953


How long can loop recorders stay in?

1180


What are jump statements in c#?

971


How can I access the registry from c# code?

1023


Can we have only “try” block without “catch” block in c#?

877


What is a type c#?

980


What is difference between const and static in c#?

999


What is the difference between finally and finalize block?

945


What do you use c# for?

928


What is disco?

937


What is a factory in c#?

879


How main method is called in c#?

958


What is data types in c#?

960


What is the syntax for calling an overloaded constructor within a constructor (this() and constructorname() does not compile)?

959


Is php easier than c#?

903