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 |
Is it possible to nest cfml conditional tags?
Can a child class call the constructor of a base class?
What is dependency injection?
What does writeline mean?
Difference between value and reference type. What are value types and reference types?
Why do we use methods in c#?
How do you create empty strings in c#?
Why do you call it a process? What’s different between process and application in .net, not common computer usage, terminology?
Define clr in .net?
How to block a class from being inherited further?
hi , how could i analyse a text the user added on a site to look for some words like "car" "shouffere" .. and then i can use that information in addition to other information to make a decision about the adds im going to to show on the site.
Define a strong name in .net?
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)