StackOverflow 文件 Scala Language 教程 Scala.js 簡單的類 簡單的類 Created: November-22, 2018 class Person(val firstName: String, val lastName: String) { def fullName(): String = s"$firstName $lastName" } 集合胖箭頭函式