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 |
explain synchronous and asynchronous in C#
3 Answers AxSys, Mastek, Synechron,
Explain boxing and unboxing in c#?
Why is aws serverless?
Can we have the method in drived class with the same name which is there in base class?
While debugging a C# application can you change the value of a variable?
Is null empty or whitespace c#?
Do unused Namespaces in c# affect run-time performance?
Is arraylist faster than linkedlist?
Name the two classes are required for implementing a windows service?
I want to print "Hello" even before main() is executed. How will you achieve that?
What is data binding with example?
What is a factory in c#?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)