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 / lakshmi

Methods that implement an interface must be declared public. The reason for this is that methods are implicitly public within an interface, so their implementation must also public. Also the return type and signature of the implementing method must match exactly the return type and signature specified in the interface definition.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how obfuscator works in .net

1064


What is the reason behind the invention of c#?

1196


What is the difference between IEnumerator and IEnumerable?

1217


What Is A Satellite Assembly?

1010


What is #region in c#?

973


What is a string c#?

946


What is difference between abstract class and interface in c#?

1001


Is for loop faster than foreach?

1077


What do you mean by saying a "class is a reference type"?

958


What is double c#?

986


What is c# used for in the industry?

949


What is the purpose of constructor in c#?

897


What is expression tree in c#?

972


Are string objects mutable or immutable?

991


What are the properties of c#?

1076