Lesson 3: Kotlin Functions and Classes

Outline:

  1. Questions?
  2. Control flow in Kotlin: functions
  3. Interlude: null safety
  4. Classes in Kotlin
    • constructors
    • instance variables
    • methods
    • example: Exercise
  5. Wrap-up

What’s next

What you should do now:

  • The readings (see below)
  • Complete Part A of Assignment 1 today

Reading assignment (to be completed by the next class):

Kotlin basics, cont’d (from today):

Kotlin basics, cont’d (for next time):