Player

o1.football4.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

name

the name of the player

employer

the club the player plays for

Attributes

Supertypes
class Object
trait Matchable
class Any

Members list

Keywords
  • no keywords
  • override

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.

Returns

a string representation of the object.

Definition Classes
Any

Concrete fields

val employer: Club
val name: String