---
title: "Discussion on \"What Is a Value Class in Kotlin, and When Does It Create an Object?\" | Hashnode"
description: "Discussion on \"What Is a Value Class in Kotlin, and When Does It Create an Object?\". What a Kotlin value class is, what the compiler turns it into, and the exact cases where it creates a real object."
url: "https://hashnode.com/posts/kotlin-value-class/6b0850a4354519848f4a39ad"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [What Is a Value Class in Kotlin, and When Does It Create an Object?](https://imayankkumar.hashnode.dev/kotlin-value-class?utm_source=hashnode&utm_medium=feed)

What a Kotlin value class is, what the compiler turns it into, and the exact cases where it creates a real object.

Nov 26 · 7 min read · imayankkumar.hashnode.dev  
Read the article

-   [#kotlin](https://hashnode.com/tag/kotlin)
-   [#android](https://hashnode.com/tag/android)
-   [#androiddev](https://hashnode.com/tag/androiddev)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)

## Written by

[Mayank Kumar](https://hashnode.com/@imayankkumar)

@imayankkumar · Bengaluru, India

  
[View profile](https://hashnode.com/@imayankkumar)

Senior Android Engineer | Kotlin, Android Internals, Performance Engineering & AI

I'm Mayank, an Android engineer focused on Kotlin, software architecture, performance engineering, and AI-assisted development. I write about building Android apps with AI, including the experiments that don't work.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
