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 escape a character?
What is difference between sleep () and wait ()?
What are methods c#?
What is enum in c#?
i want o/p 011242110 in c# code.
Hi Friends, I am going through Siemens Interview Procedure from last 1+1/2 months. I went through 1 written + 2 Technical + 1 Managerial Round process after which I got call from HR informing that "you are selected and we would like to meet you for HR round". HR round was very nominal compared to MR. HR Round last for hardly 5 mins. They told me that you will get the final result on Friday. Still I have not received any feedback from them. Please help!!!
What is main thread in c#?
Do vs while c#?
Explain About Global.asax
What is an object and a class?
What is a private method in c#?
What is difference between === and ==?
What is lazy loading and eager loading in c#?
What is args c#?
What are the different types of constructors in c#?