IsCodeCorrect() public method

public IsCodeCorrect ( int code ) : bool
code int
return bool
 public void WithDrawCash(double cashToGet)
 {
     if (accChecker.AccountActive(GetAccountNumber()) && codeChecker.IsCodeCorrect(GetSecurityCode()) && fundChecker.HaveEnoughMoney(cashToGet))
     {
         Console.WriteLine("Transaction Completed\n");
     }
     else
     {
         Console.WriteLine("Transaction Failed\n");
     }
 }
Example #2
0
 public void WithdrawCash(double cash)
 {
     if (accChecker.AccountActive(GetAccountNumber()) &&
         codeChecker.IsCodeCorrect(GetSecurityCode()) &&
         fundChecker.HaveEnoughMoney(cash))
     {
         fundChecker.WithdrawMoney(cash);
         Debug.Log("Transaction complete.");
     }
     else
     {
         Debug.Log("Transaction failed.");
     }
 }