Skip to content

Instantly share code, notes, and snippets.

@fboeller
Created August 7, 2019 20:08
Show Gist options
  • Save fboeller/3220837db1e4614a18d4d984937fb793 to your computer and use it in GitHub Desktop.
Save fboeller/3220837db1e4614a18d4d984937fb793 to your computer and use it in GitHub Desktop.
sealed class Shape
class Rectangle(val x: Double, val y: Double) : Shape()
class Circle(val radius: Double) : Shape()
class Parallelogram(val base: Double, val height: Double): Shape()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment