https://kotlinlang.org logo
#announcements
Title
# announcements
r

rmarinsky

05/25/2017, 3:03 PM
Why
enum class
in kotlin have no hidden
override fun toString()
, as in a data class?
i

ilya.gorbunov

05/25/2017, 3:17 PM
bravoaqa: Enum classes inherit
toString
implementation from Enum base class, which by default returns the entry
name
.
k

kevinmost

05/25/2017, 3:17 PM
enum classes do have the toString method, as do all objects, and it's overridable
m

myanmarking

05/25/2017, 3:18 PM
yes, you can override Equals
4 Views