Articles in Kotlin

Kotlin

Abstract Classes vs Interfaces in Kotlin

Learn when to use abstract classes vs interfaces in Kotlin. Covers constructors, state, default implementations, multiple inheritance, the comparison ...

Kotlin

Delegation in Kotlin

Learn delegation in Kotlin — interface delegation with the by keyword, lazy initialization, observable and vetoable property delegates, custom d...

Kotlin

Generics in Kotlin

Learn Kotlin generics from scratch — generic classes, generic functions, type constraints, variance with in/out, star projection, reified types,...

Kotlin

Destructuring Declarations in Kotlin

Learn destructuring declarations in Kotlin — how to unpack data classes, Pairs, and Maps into variables, how to skip components with underscore,...

Kotlin

Inline Functions in Kotlin

Learn how inline functions work in Kotlin — how the compiler eliminates lambda allocations, how reified generics preserve type information at ru...

Kotlin

Collection Operations in Kotlin

Master Kotlin collection operations — map, filter, reduce, fold, flatMap, groupBy, partition, zip, chunked, and more. Learn how to chain operati...

Kotlin

Data Class vs Regular Class in Kotlin

Learn when to use data class vs regular class in Kotlin. Covers the core distinction between data and behavior, auto-generated functions, comparison t...

Kotlin

Visibility Modifiers in Kotlin

Learn Kotlin's four visibility modifiers — public, private, protected, and internal — with clear rules on when to use each. Covers private...

Kotlin

Constructors in Kotlin

A complete deep dive into Kotlin constructors — primary constructor, init blocks, secondary constructors, constructor chaining, initialization o...