Created
July 29, 2022 06:49
-
-
Save ifalok007/98933aded666cd11296854dc8e6471b0 to your computer and use it in GitHub Desktop.
traits
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
trait Greeter { | |
def meet(name: String): Unit | |
def greet(name: String): Unit = println("Hello, " + name + "!") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment