Instance variable
how do i declare a variable called decBalance which will contain the initial R1000 and the updated account balance when the user deposits or withdraws money?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

AlanRank #669 · 3.6K reputationPosted Aug 16, 2007, 5:37 AM EDT
// declaration
decimal decBalance = 1000m;
// update with a new value, after a deposit of R200 say:
decBalance += 200m;