Why can?t you specify the accessibility modifier for methods
inside the interface?
Answers were Sorted based on User's Feedback
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 |
Answer / kumar vaibhav
Because Interface provides different implementation within calling class.So it should be public.
Is This Answer Correct ? | 2 Yes | 0 No |
What is a ienumerator?
Perfect Example Of While And Do-While Loop In C#.Net ?
What is private and shared assembly?
Hai I am Shiva from TN, SSE.I have an query problem. My Table : Door Field : ID,DoorID,ZoneID,Date,Time,Status. Problem was : Status.We got two values, one is 00 (OUTTIME) , Another is 01(INTIME) Like this Status --------- 00 01 00 01 00 01 00 01 How to Set as Status 00 and 01 , of separate column , Status as Intime,Status as Outtime Like this ----------- InTime OutTime ---------- ----------- 01 00 01 00 01 00 01 00 01 00 01 00 Regards KS kumar
Advantages of c# over vb.net?
What is the difference between private and protected in c#?
What are the different types of assembly?
What do you understand by an Implicit Variable?
What does static mean in c sharp?
What are the types of operator?
What is Lambda Expression?
How cache is implemented in web application for DB queries?