The Baeldung logo
  • The Baeldung LogoKotlin SublogoKotlin Sublogo
  • Start Here
  • Guides ▼▲
    • Kotlin Tutorial

      Learn about the core concepts and basic building blocks of Kotlin.

    • Kotlin Collections

      Learn how to use collections in Kotlin.

    • Kotlin Basics

      Introductory examples for Kotlin.

    • Kotlin Classes and Objects

      Classes and Objects provide the foundation for all Kotlin development.

    • Kotlin with Spring

      Learn how to use the Spring framework with Kotlin.

  • Pricing
  • About ▼▲
    • Full Archive

      The high level overview of all the articles on the site.

    • About Baeldung

      About Baeldung.

Category upKotlin

Kotlin Classes and Objects » Data Class

Classes and Objects provide the foundation for all Kotlin development. Learn about the features that Kotlin provides for object-oriented programming.

  • x Data Class (13)
  • Reflection (6)
  • Kotlin Keyword (6)
  • Companion Object (5)
  • Enum (5)
  • Definition (5)
  • Serialization (3)
  • Inner Class (3)
  • JSON (2)
  • Generics (2)

>> Convert a Data Class to ByteBuffer in Kotlin

>> Iterating Over Components of Object in Kotlin

>> Iterating All Fields of a Data Class Without Reflection in Kotlin

>> Cloning an Object in Kotlin

>> Private Constructors in Kotlin

>> Data Objects in Kotlin

>> Difference Between Object and Data Class in Kotlin

>> Extend Data Class in Kotlin

>> Create a Deep Copy of a Kotlin Data Class

>> Data Class’s equals() Method

  • ↑ Back to Top
  • 1
  • 2
  • Next →
The Baeldung logo

Categories

  • Kotlin Basics
  • Kotlin Classes and Objects
  • Spring with Kotlin

Series

  • Kotlin Collections
  • Kotlin Strings
  • Kotlin Tutorial
  • Kotlin Spring
  • Kotlin Coroutines Tutorial

About

  • About Baeldung
  • Baeldung All Access
  • The Full Archive
  • Editors
  • eBooks
  • FAQ
  • Baeldung Pro
  • Terms Of Service
  • Privacy Policy
  • Company Info
  • Contact
The Baeldung Logo