# Add custom value to enum class

**URL:** <https://discuss.kotlinlang.org/t/add-custom-value-to-enum-class/3850>\
**Category:** Language Design\
**Created:** [July 23, 2017, 9:16am UTC](https://discuss.kotlinlang.org/t/add-custom-value-to-enum-class/3850 "2017-07-23T09:16:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![moseskarunia](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@moseskarunia](https://discuss.kotlinlang.org/u/moseskarunia)\
**Post date:** [July 23, 2017, 9:16am UTC](https://discuss.kotlinlang.org/t/add-custom-value-to-enum-class/3850/1 "2017-07-23T09:16:20Z")

</div>

Hi, can enum in kotlin have custom val? Like,

```
enum class Something{
    HELLO{
         val desc = "Hello World"
    }
}

```

and retrieve it something like

```
Something.HELLO.desc

```

Thanks.

---

<div class="post-metadata">

**Author:** ![RandomByte](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/randombyte/32/2376_2.png) [@RandomByte](https://discuss.kotlinlang.org/u/RandomByte)\
**Post date:** [July 23, 2017, 11:55am UTC](https://discuss.kotlinlang.org/t/add-custom-value-to-enum-class/3850/2 "2017-07-23T11:55:27Z")

</div>

```auto
enum class Something(val desc: String) {
    HELLO("Hello World")
}

```
