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
Why singleton pattern is used in c#?
State whether it is true to test a Web service you must create a windows application or Web application to consume this service or not?
What does the initial catalog parameter define in the connection string?
In .Net, what is an assembly? Also explain the type of assembly.
Is unity object oriented?
How to transpose multi-dimensional array?
What does out mean c#?
Why do we use stringbuilder in c#?
What is method overriding in c#
Which technology is best for desktop application?
How can I produce an assembly?
What is the base class in .net from which all the classes are derived from?
Why ref is used in c#?
What is the default value of datetime in c#?
How to declares a two-dimensional array in C#?