C# Class Tennis.TennisGame2

Inheritance: TennisGame
Afficher le fichier Open project: emilybache/Tennis-Refactoring-Kata Class Usage Examples

Méthodes publiques

Méthode Description
GetScore ( ) : string
SetP1Score ( int number ) : void
SetP2Score ( int number ) : void
TennisGame2 ( string player1Name, string player2Name )
WonPoint ( string player ) : void

Private Methods

Méthode Description
P1Score ( ) : void
P2Score ( ) : void

Method Details

GetScore() public méthode

public GetScore ( ) : string
Résultat string

SetP1Score() public méthode

public SetP1Score ( int number ) : void
number int
Résultat void

SetP2Score() public méthode

public SetP2Score ( int number ) : void
number int
Résultat void

TennisGame2() public méthode

public TennisGame2 ( string player1Name, string player2Name )
player1Name string
player2Name string

WonPoint() public méthode

public WonPoint ( string player ) : void
player string
Résultat void