Why can?t you specify the accessibility modifier for
methods inside the interface?
Answer Posted / swapna
They all must be public. Therefore, to prevent us from
getting the false impression that we have choice to access,
so we are not allowed to specify any accessibility, it's
public by default.
| Is This Answer Correct ? | 18 Yes | 2 No |
Post New Answer View All Answers
Why to use “finally” block in c#?
Why do we use struct in c#?
How to properly clean up excel interop objects?
What is the main purpose of linq?
What is type class in c#?
Can we override static class in c#?
Does console.writeline() stop printing when it reaches a null character within a string?
What is difference between C# and VB.NET?
What is clr in c#?
What is the use of constructor in c# with example?
what are some characteristics of an array?
what are pointer types in c#
list the steps in code compilation in c#?
How does aspect oriented programming work?
What is string method in c#?