//��������Ա����ҵ����� public void BankProcess(ClientEx client) { switch (client.ClientType) { case "Deposit Person": client.ToDeposit(client.Money); break; case "Transfer Person": client.ToTransfer(client.Money); break; case "Draw Money Person": client.ToDrawMoney(client.Money); break; } }
//定义银行员工的业务操作 public void BankProcess(ClientEx client) { switch (client.ClientType) { case "Deposit Person": client.ToDeposit(client.Money); break; case "Transfer Person": client.ToTransfer(client.Money); break; case "Draw Money Person": client.ToDrawMoney(client.Money); break; } }