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

using System;
 
namespace WindowsApplication1
{
public interface a
{
void b();
}
public interface c
{
void b();
}
public class Class1:a,c
{
public Class1()
{
//
// TODO: Add constructor logic here
//
}
#region a Members
 
public void d()
{
// TODO: Add Class1.d implementation
}
 
#endregion
 
#region c Members
 
public void b()
{
// TODO: Add Class1.b implementation
}
 
#endregion
}
Re: What happens if you inherit multiple interfaces and they have conflicting method name 80 80

Then you have to explicitly refer to the members

public void a.b()
{
// TODO: Add Class1.d implementation
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.