Created
August 7, 2019 20:08
-
-
Save fboeller/3220837db1e4614a18d4d984937fb793 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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