Package bet
Class BasketballBet
java.lang.Object
bet.Bet
bet.BasketballBet
Represents a basketball betting option with specific odds and available choices.
This class is a specialized type of Bet for basketball games, where the
available betting choices are limited to two possible outcomes:
- '1' - indicating a win for the first team
- '2' - indicating a win for the second team
-
Constructor Summary
ConstructorsConstructorDescriptionBasketballBet(String game, double odds) Constructs a newBasketballBetinstance with the specified game details and odds. -
Method Summary
Methods inherited from class bet.Bet
getAvailableChoices, getGameResult, getOdds, setGameResult
-
Constructor Details
-
BasketballBet
Constructs a newBasketballBetinstance with the specified game details and odds.The betting choices for a basketball game are predefined as '1' and '2', representing the two possible outcomes for the game.
- Parameters:
game- AStringdescribing the basketball game matchup (e.g., "Lakers vs Warriors").odds- The decimal odds associated with this betting option.
-