Skip to content

Glossary: Kotlin Basics

toString

Also written: toString()

The function that gives the text shown when you print an object. You can `override` it, and a data class makes a readable one for you.

Where the book teaches it

Related terms

overridedata class