Why can?t you specify the accessibility modifier for methods
inside the interface?
Answer Posted / umesh
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 ? | 3 Yes | 1 No |
Post New Answer View All Answers
If a child class instance is created, which class constructor is called first - base class or child class?
Compare and contrast between the System.Array.CopyTo() and Clone()?
What do you mean by default constructor?
Does c# support try-catch-finally blocks?
To whom a method is accesssed if it is marked as protected internal ?
What is difference between arraylist and list in c#?
Is it true that all c# types derive from a common base class?
What is difference between mutable and immutable in c#?
What is the use of properties window?
What is delegates in c# and uses of delegates?
Why do we use readonly in c#?
What is an int c#?
What is dataview c#?
What is concrete class in c# with example?
What is difference between tostring() vs convert.tostring() vs (string) cast