Kotlin Sealed Class

  • Sealed class abstract’tır. Nesnesi oluşturulmaz.
  • Sealed class’ın private constructor metodu bulunmaz.
  • Sealed class ile Sub class aynı dosyada tanımlanması gerekir.
Kotlin

--

--

--

Android Developer 👨🏻‍💻

Love podcasts or audiobooks? Learn on the go with our new app.

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
Halil Özel

Halil Özel

Android Developer 👨🏻‍💻

More from Medium

Kotlin Coroutines

Kotlin Coroutines [Part-1]

How and When to convert a Utility function in Kotlin to an Extension Function

How can we write tests for Coroutine Flows and Stateflow in Kotlin