3 ms·
Inheritance is just traits combined interfaces. Interface is type, trait is the implementation. It just so happens that bringing the type along with the imple
by wvenable 6y ago
Inheritance is just traits combined interfaces. Interface is type, trait is the implementation. It just so happens that bringing the type along with the implementation is so common/useful that traits on their own aren't as common as inheritance.