tieskedh
11/20/2017, 3:15 AMval name: Type =Type()
Here Type()
is the constructor, so you don't need new
.
val
stands for a field witch you can only read.
var
is a field with a getter and a setter
If your new in Kotlin, I recommend you to follow the kotlin-koans http://kotlinlang.org/docs/tutorials/