Kotlin data classes provide a clean, elegant way to store data, allowing easy access, comparison, copying, and manipulation. And they provide all this functionality in a performant package. You won’t need to worry about these classes introducing overhead into your app, for the most part.
Whether you’re writing your app from scratch or looking to expand it with additional data functionality, you’ll want to use the data keyword and its functionality. Doing so will provide you with cleaner, more maintainable code.
See forum comments
This content was released on May 22 2024. The official support period is 6-months
from this date.
Download course materials from Github
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress,
bookmark, personalise your learner profile and more!
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.