How to design a duck with OOP principles
Anonymous
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 =)
Check out your Company Bowl for anonymous work chats.