Thread: Class help
View Single Post
  #10 (permalink)  
Old 11-14-2007, 07:19 AM
Shaolin Shaolin is offline
Member
 
Join Date: Nov 2007
Posts: 36
Shaolin is on a distinguished road
Thanks. Yet another question. Is the following code ok:

Code:
public double takeMoneyOut( double amount ) { double totalBalance; totalBalance = balance + overdraftLimit ; if( amount > totalBalance ) { // error message } else { // return totalBalance } }
Reply With Quote