Thought about this use of interfaces. Accordingly, the question arose whether to use such code?
public interface IAnimal { int LegsCount { get; } } public interface ICat : IAnimal { string Voice { get; } } public abstract class FourLegsAnimal : IAnimal { public int LegsCount => 4; } public class DummyCat : FourLegsAnimal, ICat { public string Voice => "I am dummy cat"; } The code works, but I don’t know if there is a “smell” for such a code.
IAnimalcan not immediately contain astring Voice? - tCode