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 tuple in c#?
What is encapsulation in csharp?
In which order the constructor is called for an inherited class?
What are async and await?
What is difference between sleep () and wait ()?
How do I start a program in c#?
What is a protected class in c#?
What is the difference between “finalize” and “finally” methods in c#?
Explain what is copy constructor?
Is datetime a value type in c#?
Is it not possible to store a boolean value as a variable?
When was c# created?
Assembly Code. in Rejester AL. How do Contast Replece( or Change): Bit D3 With Bit D4 and Bit D2 With Bit D5 and Bit D1 With Bit D6 and Bit D0 With Bit D7 I am Not Know Very Well Write English.
What is expression tree in c#?
What is difference between iqueryable and ienumerable in c#?