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 the difference between console and windows application?

926


What is difference between var dynamic and object in c#?

903


What is hash c#?

902


What are the benefits of using generics in c#?

874


Which is faster hashtable or dictionary?

928


What is deadly diamond problem?

927


What is the difference between namespace and class in c#?

912


What is difference between dictionary and hashtable in c#?

833


What is difference between a constant and read-only in C#?

921


What is hierarchical inheritance in c#?

925


What is generic collection in c#?

891


What is the use of tryparse in c#?

880


Why generics are used?

857


How do you define a predicate?

842


Can the accessibility of a type member be greater than the accessibility of its containing type?

903