Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

How to Make Your Code Clean With Kotlin Sealed Classes

Philipp Lackner via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Learn how to enhance code cleanliness using Kotlin sealed classes in this 18-minute tutorial. Explore the differences between sealed classes and enum classes, discover techniques for handling responses with sealed classes, and understand how to effectively expose state in a ViewModel. Gain insights into making code more readable and maintainable through practical examples and explanations. Master the implementation of sealed classes to improve overall code structure and organization in Kotlin projects.

Syllabus

- Introduction
- Sealed classes vs. enum classes
- Using sealed classes to handle responses
- Exposing state in a ViewModel
- Making your code more readable

Taught by

Philipp Lackner

Reviews

Start your review of How to Make Your Code Clean With Kotlin Sealed Classes

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.