SimplificationMethodsGaganjot - GaganjotKaurSaini/Debugging_Game GitHub Wiki

Method Parameters Mutates Returns Constructor String player Sets player name, balance etc. Object reference Main Int arguments Initialize main program Int Winnings Int winning Calculate total winnings of player Int

Method Parameters Mutates Returns Constructor String name, Int balance Check name and balance of the player(i.e should not be null) Object reference Set limit Int limit Initialize limit Void balanceExceedsLimit Int amount If balance greater than limit, show balance Boolean balanceExceedsLimitBy ------ Exception throw if balance greater than limit Boolean takeBet Int bet Checks conditions for bet Int recieveWinnings Int winnings If winnings greater than zero, increase balance, otherwise exception thrown Int toString Name, Balance, Limit