---
title: "Discussion on \"Data Classes in kotlin\" | Hashnode"
description: "Discussion on \"Data Classes in kotlin\". Data classes are normal classes mainly created to hold data\n\ndata keyword is used to mark a class as a data class.\ndata class DataClass(val id:Int, val name: String)\n\nQ. why data classes is used to hold data ? or what is the difference between it and..."
url: "https://hashnode.com/posts/data-classes-in-kotlin/63e479837da279771ff44d97"
---

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

Discussion

# [Data Classes in kotlin](https://mohamedewida.hashnode.dev/data-classes-in-kotlin?utm_source=hashnode&utm_medium=feed)

Data classes are normal classes mainly created to hold data data keyword is used to mark a class as a data class. data class DataClass(val id:Int, val name: String) Q. why data classes is used to hold data ? or what is the difference between it and...

Feb 9, 2023 · 2 min read · mohamedewida.hashnode.dev  
Read the article

-   [#android-app-development](https://hashnode.com/tag/android-app-development)

## Written by

[Mohamed Ewida](https://hashnode.com/@refactorerrrr)

@refactorerrrr

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

Android Kotlin Developper

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
