Join Slack
Powered by
also, does kotlin have Traits
# announcements
x
xenoterracide
12/10/2018, 10:34 PM
also, does kotlin have Traits
d
diesieben07
12/10/2018, 10:38 PM
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
xenoterracide
12/15/2018, 8:35 AM
https://en.wikipedia.org/wiki/Trait_(computer_programming)
, but yes interfaces with code including state is effectively a trait by another name.
3
Views
Open in Slack
Previous
Next