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
}

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.