Answer Posted / mohit jethva
1. Interface is use for follow the some coding standard
2. If we create interface then each and every devloper has
to implement all the methods.
3. For e.g. If we are creating application for Vichele then
we need to create one interface for two wheeler and one
interface for four wheeler. When any of devloper is going
to extend it then he/she has to implement every method like
Break , Gear , Liver etc....
4. Force to implement all the methods from interface.
5. Multiple inheritance.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is expression c#?
Can interface have virtual methods in c#?
What is the solution if you need to manipulate sets of items?
Why c# is called type safe language?
Can we have static indexer in c#?
Does c# provide copy constructor?
What is the difference between abstract class and interface in c#?
What is the difference between arraylist and list in c#?
Is it possible to force garbage collector to run?
Difference between value and reference type. What are value types and reference types?
What is the difference between mobile application and desktop application?
What is selector c#?
What is the use of base keyword? Tell me a practical example for base keyword’s usage?
Does c# support multiple inheritance (mi)?
What's the difference between system.string and system.text.stringbuilder classes?