How to design a duck with OOP principles
Sigiloso
maybe as interface and its implementation interface Bird { color: Color weight: Int age: Int sex: Sex ... fun fly(); } interface Flying { fun fly(); } class Duck: Bird, Flying { color: Color.Orange; ... fun fly() { ... } } The answer is very abstract of course =)