Articles in Kotlin

Kotlin

Extension Functions in Kotlin

Learn how extension functions work in Kotlin and how to use them to write cleaner Android code. Covers View, Context, Fragment, String, EditText, and ...

Kotlin

Object and Companion Object in Kotlin

Learn how object and companion object work in Kotlin — Kotlin's replacement for Java's static keyword. Covers singletons, utility objects, anony...

Kotlin

Enum Classes in Kotlin

Learn everything about Kotlin enum classes — declaring enums with properties and functions, using them with when expressions, iterating with ent...

Kotlin

Inheritance and Interfaces in Kotlin

Learn inheritance and interfaces in Kotlin — the open keyword, overriding functions and properties, abstract classes, interface default implemen...

Kotlin

Sealed Classes in Kotlin

Learn how sealed classes work in Kotlin and why they are essential for modern Android development. Covers UI state management, API result handling, na...

Kotlin

Data Classes in Kotlin

Learn everything about Kotlin data classes — how they auto-generate toString, equals, hashCode, copy and componentN functions, how to use copy f...

Kotlin

Classes and Objects in Kotlin

Learn how to create and use classes in Kotlin — primary and secondary constructors, init blocks, computed properties, visibility modifiers, comp...

Kotlin

Functions in Kotlin

A complete guide to functions in Kotlin — basic syntax, single-expression functions, default parameters, named arguments, vararg, extension func...

Kotlin

Conditional Expressions in Kotlin

Learn how to use if and when in Kotlin — both as statements and as expressions that return values. Covers range matching, type checking, sealed ...