public WithdrawCash ( double cash ) : void | ||
cash | double | |
Результат | void |
void OnEnable() { Debug.Log("------------------"); Debug.Log("FACADE DESIGN PATTERN"); BankAccountFacade bankAccount = new BankAccountFacade(12345678, 1234); Debug.Log("\"I want to withdraw $50 dollars!\""); bankAccount.WithdrawCash(50.00); Debug.Log("\"Mh ok now let me withdraw $5000 dollars!?\""); bankAccount.WithdrawCash(5000.00); Debug.Log("\"What tf... maybe save some cash, here are $300 bucks ;-)\""); bankAccount.DepositCash(300.00); }
void OnEnable() { Debug.Log ("------------------"); Debug.Log ("FACADE DESIGN PATTERN"); BankAccountFacade bankAccount = new BankAccountFacade (12345678, 1234); Debug.Log ("\"I want to withdraw $50 dollars!\""); bankAccount.WithdrawCash (50.00); Debug.Log ("\"Mh ok now let me withdraw $5000 dollars!?\""); bankAccount.WithdrawCash (5000.00); Debug.Log ("\"What tf... maybe save some cash, here are $300 bucks ;-)\""); bankAccount.DepositCash (300.00); }