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

Can we write class inside a class in c#?

899


What is a dynamic assembly?

906


In .NET how can you solve the DLL Hell problem?

1110


Why do we use classes?

830


What is base class in c#?

949


What is the difference between CreateObject() and GetObject()?

1023


What is indexer c#?

825


How do you remove white spaces from a string?

884


How we convert private assembly into public assembly?

900


Is string immutable in c#?

956


What is hashset c#?

917


how to print invert pyramid in c#

1707


Can a method be sealed in c#?

855


what is a structure in c#

1553


What is dbcontext c#?

920