Open in app

Sign In

Write

Sign In

Philipe Steiff
Philipe Steiff

154 Followers

Home

About

Published in

AndroidPub

·May 24, 2017

Kotlin — What is a Sealed Class?

Let’s start with a simple definition about sealed classes: It’s a kind of ADT(Algebraic Data Type), used for representing restricted class hierarchies, also allowing a datatype to be one of a predefined set of types. In Kotlin context we can also use sealed classes combined with when expression. Allowing compiler…

Kotlin

3 min read

Kotlin — What is a Sealed Class?
Kotlin — What is a Sealed Class?
Kotlin

3 min read

Philipe Steiff

Philipe Steiff

154 Followers

Android Developer at 99

Following
  • Julie Zhuo

    Julie Zhuo

  • Nir Eyal

    Nir Eyal

  • Steve Blank

    Steve Blank

  • @sliskicode

    @sliskicode

  • Suzana Maurício

    Suzana Maurício

See all (77)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams