also, does kotlin have Traits
# announcements
x
also, does kotlin have Traits
d
Depends on what you mean by traits. If you mean "interfaces with code in them" then yes, normal kotlin interfaces can have method implementations.
x
https://en.wikipedia.org/wiki/Trait_(computer_programming), but yes interfaces with code including state is effectively a trait by another name.