Interview Questions

What happens if you inherit multiple interfaces and they have conflicting method names?

C# Interview Questions and Answers


(Continued from previous question...)

173. What happens if you inherit multiple interfaces and they have conflicting method names?

It’s up to you to implement the method inside your own class, so implementation is left entirely up to you. This might cause a problem on a higher-level scale if similarly named methods from different interfaces expect different data, but as far as compiler cares you’re okay.
To Do: Investigate

(Continued on next question...)

Other Interview Questions