Skip to content

Glossary: Kotlin Basics

closed class / open

Also written: open, open class, closed

A normal class is closed, so nobody can extend it. Marking it `open` lets other classes build on it, and marking a function `open` lets a subclass override it.

Where the book teaches it

Related terms

inheritancesubclassoverride