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?

Answers were Sorted based on User's Feedback



Why can?t you specify the accessibility modifier for methods inside the interface?..

Answer / guest

They all must be public. Therefore, to prevent you from
getting the false impression that you have any freedom of
choice, you are not allowed to specify any accessibility,
it?s public by default

Is This Answer Correct ?    4 Yes 1 No

Why can?t you specify the accessibility modifier for methods inside the interface?..

Answer / kumar vaibhav

Because Interface provides different implementation within calling class.So it should be public.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More C Sharp Interview Questions

Are tuples immutable c#?

0 Answers  


What is difference between ienumerable and iqueryable in c#?

0 Answers  


What is difference between hashtable and dictionary in c#?

0 Answers  


If we write a goto or a return statement in try and catch block will the finally block execute?

6 Answers  


What are properties in C#?

0 Answers   UGC Corporation,


What is default value of enum c#?

0 Answers  


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

0 Answers  


How To Maintain Transaction In C#?

1 Answers   Phoenix Technologies,


What is private and shared assembly?

0 Answers  


What is the full form of GAC? Explain its uses?

0 Answers   PUCIT,


Is there any sample c# code for simple threading?

0 Answers  


Is c# good for games?

0 Answers  


Categories