Club

class Club(val name: String, val stadium: String)

The class Club represents football clubs in a match statistics system. Only some very basic information for each club is recorded. A club object is immutable once created.

Value parameters:
name

the name of the club

stadium

the name of the home stadium of the club

class Object
trait Matchable
class Any

Value members

Concrete methods

override def toString: String

Produces a textual description of the club (which consists of just the club’s name).

Produces a textual description of the club (which consists of just the club’s name).

Definition Classes

Concrete fields