Why can?t you specify the accessibility modifier for methods
inside the interface?
Answer Posted / lakshmi
Methods that implement an interface must be declared public. The reason for this is that methods are implicitly public within an interface, so their implementation must also public. Also the return type and signature of the implementing method must match exactly the return type and signature specified in the interface definition.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do you inherit a class into other class in c#?
What are the access modifiers in c#?
What is cache memory in c#?
What is the use of table aliases?
What is the advantage of static class in c#?
How do you create empty strings in c#?
How can I process command-line arguments?
What is data set in c#?
Is it not possible to store a boolean value as a variable?
How do you declare a method in c#?
Name some properties of thread class.
What is c# console application?
What does dbml mean?
How do partial classes work in c#?
What is console based application?