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 three-tier application.
For a combobox and a listbox same datatable given as a datasource. Now problem is that whenever focus of listbox changes selected value of combobox also get change or vice versa. what to be done to avoid this. According to requirement we cannot make different datasouce.
Name any three ways to pass parameters to a method in c#?
Which .gang of four. Design pattern is shown below?
What is the partial class in C# What is the use of partial class in C#?
What is difference between array and collection in c#?
what happens if you inherit multiple interfaces and they have conflicting method names?
what is IDisposal interface
What connections does Microsoft SQL Server support?
why we can't create an object for a static class?? what is the reason behind this?
Why do we use generics in c#?
Which technology is best for desktop application?
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)