Skip to content

Glossary: Kotlin Basics

copy

Also written: copy()

A data class function that makes a new object with some properties changed, using named arguments, such as `latte.copy(price = 4.25)`.

Where the book teaches it

Related terms

data classnamed argument