Programming Geeks
Published in

Programming Geeks

Explore Kotlin Sealed Classes

What are sealed classes and Why do we need them?

Problem

To handle the states of an API request we might have used enum classes. Enum in Java is a data type that contains a fixed set of constants. It’s a special data type that enables a variable to be a set full of predefined constants. Its variable must be equal to one of the values that have been…

--

--

--

Learn, share, repeat.

Recommended from Medium

Publishing private apps just got easier

6. Data Preprocessing with Orange Tool

Track your savings with python…

How does Agile Look When Blended In Cloud Computing?

[Embedded System] OLED Display

NKN AMA Q&A Highlights — February 2020

Evernote scraper 7 — Tobi Olabode

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Satya Pavan Kantamani

Satya Pavan Kantamani

Android Dev, Interested in Traveling, App development. Based in Hyderabad, India. Catch me at https://about.me/satyapavankumar

More from Medium

Understanding Clean Architecture in Android Development

MVP Implementation in Android with Kotlin

How To Test Kotlin Coroutines?

People creating

Android Kotlin Two Ways Data Binding