Package bet
Class FootballBet
java.lang.Object
bet.Bet
bet.FootballBet
Represents a football betting option with specific odds and three possible outcomes.
This class extends Bet to model bets specific to football games, where the
betting choices include:
- '1' - a win for the home team
- 'X' - a draw between the two teams
- '2' - a win for the away team
-
Constructor Summary
ConstructorsConstructorDescriptionFootballBet(String game, double odds) Constructs a newFootballBetinstance with the specified game details and odds. -
Method Summary
Methods inherited from class bet.Bet
getAvailableChoices, getGameResult, getOdds, setGameResult
-
Constructor Details
-
FootballBet
Constructs a newFootballBetinstance with the specified game details and odds.The betting choices for a football game are predefined as '1', 'X', and '2', representing the possible outcomes of a home win, draw, or away win, respectively.
- Parameters:
game- AStringdescribing the football game matchup (e.g., "Manchester United vs Liverpool").odds- The decimal odds associated with this betting option.
-