Why can?t you specify the accessibility modifier for
methods inside the interface?
Answer Posted / kishore anumala
Always the access specifiers for the method in an interface
is public. We cannot implement the methods of interface if
the access specifier is other than public as we will be
left with errors like "members cannot access due to
protection level".
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Can we have only “try” block without “catch” block in c#?
Can partial class be inherited?
Can you access a hidden base class method in the derived class?
What is a partial method?
What is the use of static in c#?
What do you mean by the delegate in c#?
What is the correct way of declaring an xml namespace?
What are floating point numbers?
Why singleton pattern is used in c#?
Does c# provide copy constructor?
What is difference between Enum and Struct?
Explain about c# language.
C# called c sharp why?
If you want to convert a base type to a derived type, what type of conversion do you use?
Describe two uses of the “using” statement during the operation of c#?