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 / kishore anumala

Always the access specifiers for the method in an interface
is public. We cannot implement the methods of interface if
the access specifier is other than public as we will be
left with errors like "members cannot access due to
protection level".

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If multiple interfaces are inherited and they have conflicting method names; What will happen ?

897


What is out in c#?

874


What is the difference between a function and a method?

908


Why do we use inheritance in c#?

855


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

853


What is the use of 'using' statement in c#?

864


What is the difference between proc. Sent by val and by sub?

910


Explain about ODP.net

1179


What is the difference between == and object.equals?

918


What is class sortedlist underneath?

896


Can struct have constructor c#?

857


What is winforms c#?

904


if we are updating a database using thread, and mean while application crashes or thread being aborted then what will happen in Database? Rollback or Database will be updated? Please explain with different scenario.

2353


What is the difference between new and override in c#?

944


How do I register my code for use by classic com clients?

837