To Lecture Notes

IT 372 -- May 4, 2026

Review Exercises

  1. What is wrong with this Kotlin toString method?
    fun toString( ) : String {
        return "$v1; $v2: $v3"
    }
    
  2. What must you do to make a Kotlin base class inheritable?
  3. What is a recommended alternative to using secondary constructors in a class?
  4. What is wrong with this Kotlin statement? How do you fix it?
    var s : String = null
    

Introduction to Kotlin

Introduction to Jetpack Compose

Composable Parameters