Interface Interview Question in C#

Below are the interface interview questions in C# for beginners and experienced developers What is the use of interface? Interface mostly used for following reasons: Specifying contract Multiple inheritances Loosely coupled code Specifying contract – Interface is used to define a contract in the application, so that the other application should follow the contract in order to execution. In other words, we can say that … Continue reading Interface Interview Question in C#


Introduction In object-oriented programming, An interface is a collection of abstract methods (without body implementations), properties, indexers, and events. It is used to define the behavior that can be implemented by the classes. It enforces classes to implement all the members of it. For example, suppose we have a Truck class and a Car class. Each of these classes should have an action start engine, … Continue reading Interface