class Club(val name: String, val stadium: String) {
// Produces a textual description of the club (which consists of just the club's name).
override def toString = this.name
}
class Match(val home: String, val away: String) {
...
}
val match1 = new Match(club2, club1)
为什么val match1
无效?