示例#1
0
            public Facade(int accountNumber, int securityCode)
            {
                this.accountNumber = accountNumber;
                this.securityCode  = securityCode;

                welcomeToBank       = new WelcomeToBank();
                accountNumberCheker = new AccountNumberCheker();
                securityCodeCheker  = new SecurityCodeCheker();
                fundsLogic          = new FundsLogic();
            }
    public BankAccountFacade(int newAcctNum, int newSecCode)
    {
        accountNumber = newAcctNum;
        securityCode  = newSecCode;

        bankWelcome = new WelcomeToBank();
        acctChecker = new AccountNumberCheck();
        fundChecker = new FundsCheck();
        codeChecker = new SecurityCodeCheck();
    }
        public BankAccountFacade(int acctNumber, int securityCode)
        {
            GetAccountNumber = acctNumber;
            GetSecurityCode  = securityCode;

            _bankWelcome          = new WelcomeToBank();
            _accountNumberChecker = new AccountNumberCheck();
            _securityCodeChecker  = new SecurityCodeCheck();
            _fundsChecker         = new FundsCheck();
        }