# Enum Classes in Kotlin

DevFeed: [Enum Classes in Kotlin](<https://devfeed.tech/articles/enum-classes-in-kotlin-25054.md>)

Original publisher: [Read original article](<https://typealias.com/start/kotlin-enum-classes/>)

Author: author@typealias.com (Dave Leeds)

Published: 2020-10-19T00:00:00Z

Content type: article

Language: en

Sources: [Dave Leeds on Kotlin - typealias.com](<https://devfeed.tech/sources/dave-leeds-on-kotlin-typealias-com.md>)

Topics: [enum](<https://devfeed.tech/topics/enum.md>), [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [class](<https://devfeed.tech/topics/class.md>)

Tags: [classes](<https://devfeed.tech/tags/classes.md>), [enum](<https://devfeed.tech/tags/enum.md>), [enum-class](<https://devfeed.tech/tags/enum-class.md>), [enumeration](<https://devfeed.tech/tags/enumeration.md>), [feature](<https://devfeed.tech/tags/feature.md>), [introduction](<https://devfeed.tech/tags/introduction.md>), [kind](<https://devfeed.tech/tags/kind.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [learn-to-program](<https://devfeed.tech/tags/learn-to-program.md>), [let-s](<https://devfeed.tech/tags/let-s.md>), [name](<https://devfeed.tech/tags/name.md>), [number](<https://devfeed.tech/tags/number.md>), [programming](<https://devfeed.tech/tags/programming.md>), [useful](<https://devfeed.tech/tags/useful.md>), [values](<https://devfeed.tech/tags/values.md>), [variable](<https://devfeed.tech/tags/variable.md>)

## AI overview

The excerpt introduces Kotlin enum classes as a way to represent a limited number of values. It begins a Schnauzer-themed example by setting up a variable to hold a pet's name, but provides no further details about the enum's definition or use.

## Source excerpt

In the last chapter, we created our very own type, called Circle, using a feature in Kotlin called a class. In this chapter, we're going to look at a special kind of class--an enum class--which is particularly useful when we want to represent a limited number of values. I hope you like Schnauzers, because this chapter is full of them! Limiting the Values Schnauzers are amazing dogs--they're smart, they're loyal to their owners, and they seem to have an opinion about everything!