C
Carl Johansson
namespace WhereDidTheInheritedInterfaceGo
{
class MainClass
{
static void Main(string[] args)
{
AnInterface ai = new DerivedClass();
ai.InterfaceMethod();
}
}
interface AnInterface
{
void InterfaceMethod();
}
class ImplementingClass : AnInterface
{
void AnInterface.InterfaceMethod()
{
}
}
class DerivedClass : ImplementingClass, AnInterface
{
void AnInterface.InterfaceMethod()
{
//Would it be possible to call the inherited
//InterfaceMethod here or has it been replaced by this
//implementation and therefore ceased to exist?
}
}
}
//Regards Carl Johansson
{
class MainClass
{
static void Main(string[] args)
{
AnInterface ai = new DerivedClass();
ai.InterfaceMethod();
}
}
interface AnInterface
{
void InterfaceMethod();
}
class ImplementingClass : AnInterface
{
void AnInterface.InterfaceMethod()
{
}
}
class DerivedClass : ImplementingClass, AnInterface
{
void AnInterface.InterfaceMethod()
{
//Would it be possible to call the inherited
//InterfaceMethod here or has it been replaced by this
//implementation and therefore ceased to exist?
}
}
}
//Regards Carl Johansson