Hi, I am creating a bank application where it is possible for the user to deposit or withdraw money. I have to create three classes. The first one should just implement the class "account", the second one should test the methods in the class "account" using a main-method. The actual banking application is created in the third class.
I am really not sure if I am on track, could you please take a look and give me some tips?
Please copy'n'paste your code rather than using screenshots.
Please use proper names for the variables: number please rather than nbr.
Don't use the double datatype for money. Either use longs and denominate the money in cents/pence, or use BigDecimals. For more information look at this discussion and the two links in the post that appears first.
posted 2 weeks ago
Please omit the two setXXX() methods. It should only be possible to change the balance in an account by putting money in (depositcredit()) or taking money out (withdraw()).