adspace
Answer Posted / Shweta Verma
Interfaces are used in C# for several reasons, including promoting loose coupling between classes by defining a contract that the implementing classes must adhere to; providing a way to achieve polymorphism and multiple inheritance (a class can implement multiple interfaces); organizing code by dividing the implementation details from the interface; and enabling programmers to work with abstractions rather than concrete classes.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers