I have the following interfaces and classes
public interface IBase
{
virtual void SomeBaseMethod()=0;
}
public interface IDerived : IBase
{
virtual void SomeOtherMethod()=0;
}
public class base: public IBase
{
void SomeBaseMethod(){};
}
public class derived: public base, public IDerived
{
void SomeBaseMethod(){};
void SomeOtherMethod(){};
}
In class derived, I have to repeat 'void SomeBaseMethod(){};', which have already implement in my class base. Otherwise I will get compile error. Is it possible not repeat 'void SomeBaseMethod(){};' in my class derived?