Every screen of the native BookNest rests on a few small types: a catalog Book, a CartLine, the state a Compose 234 screen draws from. In the React Native 36,878 version (React Native) they were plain objects checked by TypeScript interfaces; in Kotlin they are classes, mostly data classes. Each Kotlin example runs with the kotlinc 2.4.20 compiler from Kotlin Playground. Object declarations and companion objects follow in Companions and Generics.
MENU
Classes and Data Classes
Classes, Objects and Data Classes