What happens in case of the inherited interfaces have conflicting method names?
What happens in case of the inherited interfaces have conflicting method names?
Student
Skilled in SEO, content writing, and digital marketing. Completed several years of working in many organizations including multinational companies. I love to learn new things in life that keep me motivated.
In C#, if the inherited interfaces have conflicting method names, then the class implementing those interfaces will need to explicitly implement each conflicting method and provide its own implementation for each one.
Note that when implementing the methods, we need to use the explicit interface implementation syntax to differentiate between the two conflicting methods.