Why can?t you specify the accessibility modifier for
methods inside the interface?
Answer Posted / hafiz usman majeed
as by default public access is provided in c-sharp.net
classes and interfaces, and we use interfaces for
accompolishing the purpose of multiple inheritence we must
redefine all of the methods of interface in its inherited
class that implements it so all of these methods should be
publically accessible.
Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
What is a console application in c#?
How to transpose multi-dimensional array?
Illustrate the process of code compilation in c#?
What is the difference between firstordefault and first?
What is meant by clr?
What is console readkey in vb net?
Does c# have its own class library?
Can we have two main methods in c#?
What is interface inheritance in c#?
What does m mean in decimal c#?
What is interface inheritance?
Why to use “finally” block in c#?
What is field in c#?
Give an example of a ctype.
Is there a way to force garbage collection?