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.

Value parameters:
employer

the club the player plays for

name

the name of the player

class Object
trait Matchable
class Any

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

Concrete fields