what is the real use of interface in c#,other than that
multiple inheritance is not possible
Answer Posted / pugal
When creating a standalone project which can be
changed at will, use an interface in preference to an
abstract class; because, it offers more design flexibility.
Use an interface to design a polymorphic hierarchy
for value types.
Use an interface when an immutable contract is
really intended.
A well-designed interface defines a very specific
range of functionality. Split up interfaces that contain
unrelated functionality.
Is This Answer Correct ? | 48 Yes | 14 No |
Post New Answer View All Answers
Do loops in c#?
What is trim in c#?
Can abstract class have constructor in c#?
Which is faster list or dictionary in c#?
What is readline library?
How is method overriding different from overloading?
What does console mean c#?
What is the property of a class in c#?
Which is the best language for desktop application?
What is attribute and reflection in c#?
Is c# code is managed or unmanaged code?
Why constructor is used in c#?
What is view state c#?
I wish to create a windows application to perform a similar function as that of the "Search" which is provided to look for related files and folders in the System.. What steps must i follow??
What is using keyword in C#?