Ok, it seems as though my transaction doesnt want to work.
I have some enum declared in a different file:
operate op { WITHDRAW, DEPOSIT, CLOSED }
In the transaction class:
private Operate op ; // what type of transaction
private Account acc ; // account for which a transaction private double amt ; // amount of money involved in that transaction, deposit or withdrawal
public Transaction(Account acc, Operation op, double amt)
{
// Withdraw/Deposit conversion constructor
this.acc = acc;
this.op = op;
this.amt = amt;
}
public void processing()
{
if (op == Operate.WITHDRAW)
{
acc.withdrawal(amt)
}
}