The Baeldung logo
  • The Baeldung LogoKotlin Sublogo
  • Start Here
  • About ▼▲
    • Full Archive

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

    • Write for Baeldung

      Become a writer on the site.

    • About Baeldung

      About Baeldung.

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 (5)
  • Enum (4)

>> Why We Should Avoid Using Open Members in Kotlin Constructors

>> Companion Objects in Kotlin Interfaces

>> Difference Between “open” and “public” Keywords in Kotlin

>> Get the Type of a Variable in Kotlin

>> Create a Deep Copy of a Kotlin Data Class

>> How to Create “static” methods for Enum in Kotlin

>> Finding Enum by the Value in Kotlin

>> Data Class’s equals() Method

>> Extending a Class And Implementing Interfaces at the Same Time in Kotlin

>> Defaulting Null Values on Non-Optional Parameters in Kotlin

>> Kotlin “super is not an expression” Error

>> Anonymous Objects in Kotlin

>> Instantiate a Kotlin Data Class Using an Empty Constructor

>> Kotlin Companion Object

>> Comparing Objects in Kotlin

>> Kotlin Data Class With Optional Fields

>> Sealed Class vs Enum in Kotlin

>> Introduction to “this” Keyword in Kotlin

>> The Difference Between init Block and Constructor in Kotlin

>> Creating a New Instance from a KClass in Kotlin

>> The getClass() Equivalent in Kotlin

>> Get All Subclasses of a Sealed Class in Kotlin

>> Getters and Setters in Kotlin

>> Difference Between Classes and Singleton Objects in Kotlin

>> Static Initialization Block in Kotlin

>> Anonymous Inner Classes in Kotlin

>> Creating a Kotlin Range Iterator on a Custom Object

>> Inline Classes in Kotlin

>> Mapping of Data Objects in Kotlin

>> Guide to Kotlin Interfaces

>> Kotlin Nested and Inner Classes

>> Kotlin Constructors

>> Reflection with Kotlin

>> Working with Enums in Kotlin

>> Objects in Kotlin

>> Sealed Classes in Kotlin

>> Delegated Properties in Kotlin

>> Visibility Modifiers in Kotlin

>> Destructuring Declarations in Kotlin

>> Data Classes in Kotlin

>> Generics in Kotlin

  • ↑ Back to Top
The Baeldung logo

Categories

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

Series

  • Kotlin Collections

About

  • About Baeldung
  • The Full Archive
  • Write for Baeldung
  • Editors
  • Terms Of Service
  • Privacy Policy
  • Company Info
  • Contact
The Baeldung Logo