C# – How to implement two interfaces having same method names in a class
We have two interfaces IMan and IBirds. Both the interfaces defines a method named Eat with same name and signature. A class MyClass is inheriting both the interfaces. How can we implement method of both the interfaces in the derived class MyClass ?
Here is the code:
public interface IMan { void Eat(); } public interface IBirds { void Eat(); } public class MyClass : IMan, IBirds { void IMan.Eat()…
View On WordPress









