Kotlin can often infer the type of a variable from its initializer.
← Kotlin theorytheory 0/50 · 0%
Fundamentals · easy
20. Type Inference
Reducing boilerplate.
Check your understanding
1. Do you always need to specify type?
2. Benefit of type inference?