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; }
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; }