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
What is assembly manifest?
What Is An Interface Class?
What is ioc containers c#?
What do you mean by string objects are immutable?
Name some string escape sequences in c#.
Is it possible to execute multiple catch block for a single try statement?
What is namespace give the example?
how encapsulation is implemented in c#
What is the usage of OLE?
What does exclamation mark mean c#?
What is clr namespace?
What is hierarchical inheritance in c#?
What is boxing? Explain its functionality?
What is difference between continue and break in c#?
What is difference between c sharp and c#?