Football1 Docs
Fall 2026
API

# Club

o1.football1.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. Club objects are immutable.

## Parameters

name

  the name of the club

stadium

  the name of the home stadium of the club

## Attributes

Graph
Supertypes
  class Object
  trait Matchable
  class Any

## Members list

### Value members

#### Concrete methods

override def toString: String

Produces a textual description of the club; it consists of just the club’s name.

Produces a textual description of the club; it consists of just the club’s name.

## Attributes

Definition Classes
  Any

#### Concrete fields

val name: String
val stadium: String