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

explain synchronous and asynchronous in C#

3 Answers   AxSys, Mastek, Synechron,


Explain boxing and unboxing in c#?

0 Answers  


Why is aws serverless?

0 Answers  


Can we have the method in drived class with the same name which is there in base class?

6 Answers   TCS,


While debugging a C# application can you change the value of a variable?

0 Answers   Siebel,


Is null empty or whitespace c#?

0 Answers  


Do unused Namespaces in c# affect run-time performance?

0 Answers   HCL,


Is arraylist faster than linkedlist?

0 Answers  


Name the two classes are required for implementing a windows service?

0 Answers  


I want to print "Hello" even before main() is executed. How will you achieve that?

0 Answers   DELL,


What is data binding with example?

0 Answers  


What is a factory in c#?

0 Answers  


Categories