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 are the differences between a class and a struct?

1176


What is polymorphism c# example?

974


What is the property of a class in c#?

921


What is the difference between writeline and write in c#?

903


What is the advantage of dependency injection?

1039


What is parameterized constructor?

983


What is the difference between static class and singleton class in c#?

966


What is the difference between interface and inheritance in c#?

948


What is difference between internal and protected internal in c#?

992


Why do I get a security exception when I try to run my c# app?

1052


What is transparent caching with aop ?

1175


Is c# a keyword?

975


What are variables in c#?

1006


Describe a Struct ?

1096


What is join in c#?

979