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
Is c# used for any core features of windows vista?
What is overloading with example?
What does m mean in decimal c#?
what is IFormatable
Explain how can I get around scope problems in a try/catch?
What is the purpose of a console table?
what is a constructor? What is a destructor?
What is the data type for bit in c#?
Can we have only “try” block without “catch” block in c#?
What are different types of Delegates in C#?
What are some examples of desktop applications?
What is a delegate? Explain.
What are the different types of delegation?
Is it possible to inherit multiple interfaces?
Whats an assembly? Describe the importance of assembly?