using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Eexplicit
{
interface IBike
{
void Color();
}
interface ICar
{
void Color();
}
class AutoMobileColor : IBike,ICar
{
public void Color()
{
Console.WriteLine("Default Automobile color");
}
#region IBike Members
void IBike.Color()
{
Console.WriteLine("Bike Interface");
}
#endregion
#region ICar Members
void ICar.Color()
{
Console.WriteLine("Car interface");
}
#endregion
}
class Program
{
static void Main(string[] args)
{
AutoMobileColor col = new AutoMobileColor();
col.Color();
IBike ibike = (IBike)col;
ibike.Color();
ICar icar = (ICar)col;
icar.Color();
Console.Read();
}
}
}