Created
January 25, 2021 14:48
-
-
Save deanwampler/f275fe946447f78f75feea1bc14ac655 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
scala> class JavaPerson(val name: String, val age: Int): | |
| def this(name:String) = this(name, 18) | |
// defined class JavaPerson | |
scala> JavaPerson("Dean", 100) | |
| JavaPerson("Dean") | |
| | |
val res0: JavaPerson = JavaPerson@6684da5b | |
val res1: JavaPerson = JavaPerson@34b156ba |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment