Skip to content

Glossary: Kotlin Basics

primary constructor

Also written: constructor

The parameters after a class's name, which are the values every new object needs. Putting `val` or `var` in front makes each one a property.

Where the book teaches it

Related terms

classproperty