Created
November 25, 2014 02:16
-
-
Save notyy/e474e8fb7159d860346e 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
class Something{ | |
var x: Double = _ | |
var y: String = _ | |
var z: Char = _ | |
} | |
val s = new Something | |
s.x | |
s.y | |
s.z | |
//================= | |
scala> val s = new Something | |
s: Something = Something@74093613 | |
scala> s.x | |
res7: Double = 0.0 | |
scala> s.y | |
res8: String = null | |
scala> s.z | |
res9: Char = ? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment