Football2 Docs
Fall 2024
API

# Player

o1.football2.Player
class Player(val `name`: String, val `employer`: Club)

The class `Player` represents football players in a match statistics program. Only some very basic information about each player is recorded.

A player object is immutable after creation.

## Parameters

employer

  the club the player plays for

name

  the name of the player

## Attributes

Graph
Supertypes
  class Object
  trait Matchable
  class Any

## Members list

### Value members

#### Concrete methods

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

## Attributes

Returns

  a string representation of the object.

Definition Classes
  Any

#### Concrete fields

val employer: Club
val name: String