140 likes | 289 Views
Classes and constructors, I. Every class has a constructor, which you write (no ?invisible" constructors, as in Java)scala> class Person(val firstName:String, var lastName: String, age: Int) defined class PersonThe above is complete; no braces are needed unless you want to add code, fields, or met
E N D