Thread: Class help
View Single Post
  #35 (permalink)  
Old 11-15-2007, 09:25 AM
Shaolin Shaolin is offline
Member
 
Join Date: Nov 2007
Posts: 37
Shaolin is on a distinguished road
Ok, it seems as though my transaction doesnt want to work.

I have some enum declared in a different file:

Code:
operate op { WITHDRAW, DEPOSIT, CLOSED }
In the transaction class:
Code:
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) }
}
Reply With Quote