StackOverflow 文档 Scala Language 教程 Scala.js 简单的类 简单的类 Created: November-22, 2018 class Person(val firstName: String, val lastName: String) { def fullName(): String = s"$firstName $lastName" } 集合胖箭头函数