Lesson 3: Kotlin Functions and Classes
Outline:
- Questions?
- Control flow in Kotlin: functions
- basic functions
- passing parameters
- returning a value
- examples: Exercise 2 from Lesson 2
- Interlude: null safety
- Classes in Kotlin
- constructors
- instance variables
- methods
- example: Exercise
- Wrap-up
What’s next
- Quiz 1 will be next Monday and cover the first 4-5 Quiz Learning Objectives
- Assignment 1 is due next Wednesday
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):