Ejemplo n.º 1
0
        public Transfer(string sender, string receiver, int amount, Bank bank)
        {
            this.bank = bank;

            this.operationType = "TRANSFER";
            this.receiverBankName = bank.getName();
            this.sender = sender;
            this.receiver = receiver;
            this.amount = amount;
        }
Ejemplo n.º 2
0
        public PayIn(string sender, int amount, Bank bank)
        {
            this.bank = bank;

            this.operationType = "PAY IN";
            this.receiverBankName = bank.getName();
            this.senderBankName = bank.getName();
            this.sender = sender;
            this.receiver = "<ACCOUNT>";
            this.amount = amount;
        }