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.

  • About ▼▲
    • Full Archive

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

    • About Baeldung

      About Baeldung.

Category upKotlin

Kotlin Classes and Objects

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

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

>> Resolving Kotlin Error: “Primary constructor call expected”

>> Extension Fields in Kotlin

>> Convert a Data Class to ByteBuffer in Kotlin

>> Resolving Compile Error: “Const ‘val’ is only allowed on top level, in named objects, or in companion objects” in Kotlin

>> Serialize/Deserialize Kotlin Sealed Class

>> Iterating Over Components of Object in Kotlin

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

>> Checking if Two Objects Have the Same Class in Kotlin

>> Qualified this and Implicit this in Kotlin

>> Cloning an Object in Kotlin

  • ↑ Back to Top
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • Next →
The Baeldung logo

Categories

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

Series

  • Kotlin Collections
  • Kotlin Strings
  • Kotlin 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