Part 3: OOP & Functions

Model your domain with Kotlin’s object-oriented and function features.

What You’ll Learn

  • Classes, constructors, properties, and visibility
  • Inheritance, interfaces, and abstract classes
  • data, enum, and sealed classes with exhaustive when
  • Objects, companion objects, and singletons
  • Extension functions and advanced function features

Chapters

Chapter Description
Classes & Properties Constructors, properties, accessors, lazy
Visibility & Packages Modifiers, packages, imports
Inheritance & Interfaces open/override, abstract, interfaces
Data, Enum & Sealed Classes data/enum/sealed + exhaustive when
Objects & Companions object, companion object, singletons
Extension Functions Extension functions, infix, vararg

Table of contents


Back to top

Kotlin & Android Programming Guide is not affiliated with JetBrains or Google. Content is provided for educational purposes.

This site uses Just the Docs, a documentation theme for Jekyll.