In production Kotlin 2.0 & Jetpack Compose (Kotlin OOP), what is the primary engineering purpose of 'Classes, Constructors, Properties & Custom Accessors'?
-
A. Initialize expensive dependencies lazily while keeping module internals hidden with
internal. - B. Executing heavy disk I/O and synchronous network requests directly on the main UI rendering thread.
- C. Hardcoding production API secrets and plaintext auth tokens inside bundled client resources.
- D. Disabling lifecycle cancellation and holding strong references to destroyed screen contexts.
✓ Reveal Answer & Explanation
Correct Answer: Option A
'Classes, Constructors, Properties & Custom Accessors' is used in production Kotlin OOP specifically for: Initialize expensive dependencies lazily while keeping module internals hidden with internal.