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:
name

the name of the player

employer

the club the player plays for

class Object
trait Matchable
class Any
Keywords

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