Last active
May 29, 2023 08:10
-
-
Save s1monw1/7d2e76b51d15be3fb3177dd8d6cd166b 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
open class Mammal(val name: String) | |
class Cat(val catName: String) : Mammal(catName) | |
class Human(val humanName: String, val job: String) : Mammal(humanName) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment