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 difference between abstract class and interface in c#?

882


What is datareader c#?

870


What is alias in c#?

897


What are regular expressions? Search a string using regular expressions?

831


What is the difference between ref and out in c#?

844


What is the difference between const and readonly in c#.net?

890


When a Static Constructor is called in a Class?

984


How can you write a class to restrict that only one object of this class can be created (Singleton class)?

878


How do I create a .exe file?

940


What are the problem with .NET generics?

926


i want the csharp questions&answeres

1920


What are the fundamental differences between value types and reference types?

1000


Is there an equivalent of exit() for quitting a c# .net application?

899


How to use the sreamReader class to read form a text file?

941


What do you mean by default constructor?

1029