I have two interface like this:
interface IA{
void show();
}
interface IB{
void show();
}
now i want to implement both interface method Explicitly into a class.
In C# i can do this by using "Explicit interface implementation method" like this:
interface IA
{
void show();
}
interface IB
{
void show();
}
class Derived : IA, IB
{
void IA.show()
{
Console.WriteLine("Hello C#!");
}
void IB.show()
{
Console.WriteLine("Hello World !");
}
}
Is there any way or any keyword for java to solve this problem?