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 generic delegates in c#?
What is difference between .net and c#?
Describe an abstract class?
How do you declare an interface in c#?
What do you mean by delegates and explain different types of delegates?
What are Memory foot print of an exe?
How to assign Null value to Var?
How do you sort a list in c#?
What are the advantages of using assemble language programming?
What are the uses of delegates in c#?
What is the data type for bit in c#?
What is the relation between classes and objects?
Explain about ODP.net
Explain the types of assemblies in .net?
Is string nullable c#?