Kotlin Essential Training: Object-Oriented and Async Code
2h 52mBeginner2022-06-16
Authors

Nate Ebel
Staff Engineer, Google Developer Expert, and Podcast Host
Course details
If you’re looking to get up and running with Kotlin, the powerful programming language from JetBrains, join instructor Nate Ebel, the author of Mastering Kotlin, as he shows you the ins and out of Kotlin and walks you through its unique selling points for developers—from null safety and concise syntax to Java compatibility, to full support by Google for Android development. In this second installment of the two-apart Kotlin Essential Training series, Nate covers object-oriented programming and async code in Kotlin. He covers topics like classes, interfaces, companion objects, and coroutines. Nate also provides challenges so you can test your Kotlin knowledge as you go.
Skills covered
KotlinEssential TrainingProgramming LanguagesOpen SourceSoftware Development
Concepts
Introduction
- Building more with Kotlin
- What you should know
- Using GitHub
Object-Oriented Programming with Kotlin
- Classes
- Interfaces
- Enum classes
- Data classes
- Object classes
- Sealed classes
- Companion objects
- Challenge - Create a Result type using a sealed class
- Solution - Create a Result type using a sealed class
Writing Idiomatic Kotlin
- Top-level properties and functions
- Extension properties and functions
- Delegates
- Challenge - Refactor a helper class to use top-level functions
- Solution - Refactor a helper class to use top-level functions
Writing Asynchronous Code with Kotlin Coroutines
- Threads, thread pools, and executors
- Understanding coroutines
- Working with coroutines
- Challenge - Manage multiple async requests
- Solution - Manage multiple async requests
Conclusion
- Next steps