Implementation and inheritance of C # interface
no vote
The program class inherits from the interface IMyInterface, and implements all the properties and methods in the interface. Then an object of the program class is instantiated in the main method, and the IMyInterface interface is instantiated with the object. Finally, the properties and methods in the derived class are accessed through the instantiated interface object.