# Effective Kotlin Item 48: Consider using object declarations

DevFeed: [Effective Kotlin Item 48: Consider using object declarations](<https://devfeed.tech/articles/effective-kotlin-item-48-consider-using-object-declarations-39286.md>)

Original publisher: [Read original article](<https://kt.academy/article/ek-object-declarations>)

Published: 2023-11-06T00:00:00Z

Content type: tutorial

Language: en

Sources: [Kt. Academy](<https://devfeed.tech/sources/kt-academy.md>)

Topics: [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [object](<https://devfeed.tech/topics/object.md>), [classes](<https://devfeed.tech/topics/classes.md>), [Kotlin programming](<https://devfeed.tech/topics/kotlin-programming.md>)

Tags: [classes](<https://devfeed.tech/tags/classes.md>), [consider](<https://devfeed.tech/tags/consider.md>), [effective](<https://devfeed.tech/tags/effective.md>), [instead](<https://devfeed.tech/tags/instead.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [object](<https://devfeed.tech/tags/object.md>), [regular](<https://devfeed.tech/tags/regular.md>), [using](<https://devfeed.tech/tags/using.md>), [workshop-learning-programming](<https://devfeed.tech/tags/workshop-learning-programming.md>)

## AI overview

This tutorial explains when to use Kotlin object declarations instead of regular classes, including the covariant Nothing object pattern for generic types.

## Source excerpt

Why we should use object declarations instead of regular classes.