# Effective Kotlin Item 52: Consider using inline value classes

DevFeed: [Effective Kotlin Item 52: Consider using inline value classes](<https://devfeed.tech/articles/effective-kotlin-item-52-consider-using-inline-value-classes-39295.md>)

Original publisher: [Read original article](<https://kt.academy/article/ek-value-classes>)

Published: 2021-09-06T00:00:00Z

Content type: tutorial

Language: en

Sources: [Kt. Academy](<https://devfeed.tech/sources/kt-academy.md>)

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

Tags: [classes](<https://devfeed.tech/tags/classes.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [using](<https://devfeed.tech/tags/using.md>), [value](<https://devfeed.tech/tags/value.md>), [workshop-learning-programming](<https://devfeed.tech/tags/workshop-learning-programming.md>)

## AI overview

This tutorial explains Kotlin inline value classes, including how they can wrap a single value with little or no performance overhead. It covers using them to represent units of measure, prevent value misuse through types, and optimize memory usage.

## Source excerpt

What value classes are, how to use and inline them.