For example I have the code bellow:
public interface IFoo1
{
void Foo1();
}
public interface IFoo2
{
void Foo2();
}
public interface IOne : IFoo1
{
void One();
}
public interface IFooList : IFoo1, IFoo2
{
}
public interface ITwo : IOne, IFooList
{
}
public class Test : ITwo
{
public void Foo1()
{
}
public void One()
{
}
public void Foo2()
{
}
}
Interesting that class ITwo
inherits IFoo1
twice(from IOne
and from IFooList
) Is it a bad practice ?
I use these titles just for simplifying. But I have the same inheritance hierarchy in my prod code. And is it serious problem to have such type of inheritance ?