C# Class Tennis.TennisGame2

Inheritance: TennisGame
Mostrar archivo Open project: emilybache/Tennis-Refactoring-Kata Class Usage Examples

Public Methods

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

Private Methods

Method Description
P1Score ( ) : void
P2Score ( ) : void

Method Details

GetScore() public method

public GetScore ( ) : string
return string

SetP1Score() public method

public SetP1Score ( int number ) : void
number int
return void

SetP2Score() public method

public SetP2Score ( int number ) : void
number int
return void

TennisGame2() public method

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

WonPoint() public method

public WonPoint ( string player ) : void
player string
return void