Why can?t you specify the accessibility modifier for methods
inside the interface?
Answer Posted / tsahi
Interfaces are designed to make sure a class which
implements them exposes a certain set of methods. Because
these methods are exposed, they must be public. therefore,
there is no point in implementing a method from an interface
which will be anything other than public. So all methods in
an interface are always public.
Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What is the difference between finally and finalize block?
Which is faster array or arraylist in c#?
What is the wildcard character in sql?
Why objects are stored in heap in c#?
Why abstract class can not be instantiated?
What is addressof operator?
explain the features of static/shared classes.
Why singleton class is sealed?
What is difference between string and stringbuffer in c#?
How is the syntax written to inherit from a class in C#?Give an example ?
How do I unload an application domain?
How to Install uninstall assemblies into GAC?
How to sort an int array in c#?
what is the difference between interface and multiple interface?
In which way you can convert a value-type to a reference-type?