Thread: Class help
View Single Post
  #20 (permalink)  
Old 11-14-2007, 11:24 PM
Shaolin Shaolin is offline
Member
 
Join Date: Nov 2007
Posts: 36
Shaolin is on a distinguished road
Thanks. I guess my friend coined up that term then. I will ask him what he meant by that.

If I have the following line in main():

Code:
trans t1 = new Trans( account1, Operation.WITHDRAWAL, 100 ) ;
and in the class I have

Code:
public class trans { private Operation op ; /*Deposit or Withdrawal*/ private Account acc ; /*account for which a transaction*/ private double amt ; /*amount of money involved in that transaction, deposit or withdrawal*/ }
If I want to proccess the values from the line from main() in the trans class, how would I do that ?

Last edited by Shaolin : 11-14-2007 at 11:26 PM.
Reply With Quote