All Stories

Kotlin - no_image

reified keyword

In tutorial, no_image, kotlin, Jan 23, 2025

Kotlin - no_image

Property references and :: operatorThe :: operator is known as the “member reference” or “callable reference” operator. It can be used to create a references to the following: Class ...

In tutorial, no_image, kotlin, Jan 23, 2025

Kotlin - no_image

Operator overloadingKotlin allows you to provide custom implementations for the predefined set of operators on types. These operators have predefined symbolic representation (like + o...

In tutorial, no_image, kotlin, Jan 23, 2025

Kotlin - no_image

object keywordThe object keyword allow you to define a class and create an instance of it in a single step. This is useful when you need either a reusable singleton instance or a one-...

In tutorial, no_image, kotlin, Jan 23, 2025

Kotlin - no_image

lateinitlateinit is a keyword used to define a property that will be initialized later. Unlike other properties declared with var, lateinit properties are not initialized at the time ...

In tutorial, no_image, kotlin, Jan 23, 2025

Kotlin - no_image

Functional (SAM) interfaces

In tutorial, no_image, kotlin, Jan 23, 2025

Kotlin - no_image

ExtensionsKotlin provides the ability to extend a class or an interface with new functionality without having to inherit from the class or use design patterns such as Decorator. This ...

In tutorial, no_image, kotlin, Jan 23, 2025

Kotlin - no_image

Delegated propertiesThere are certain common kinds of properties, that, though you can implement them manually every time you need them, it would be helpful to implement them once and...

In tutorial, no_image, kotlin, Jan 23, 2025

Kotlin - no_image

Data objectsWhen printing a plain object declaration in Kotlin, the string representation contains both its name and the hash of the object:```object MyObject

In tutorial, no_image, kotlin, Jan 23, 2025

Kotlin - no_image

сompanion object

In tutorial, no_image, kotlin, Jan 23, 2025