Thread: Class help
View Single Post
  #3 (permalink)  
Old 11-14-2007, 06:09 AM
Shaolin Shaolin is offline
Member
 
Join Date: Nov 2007
Posts: 36
Shaolin is on a distinguished road
Thanks. I've done that. Here is the updated code:

Code:
public int deposit( double amount ) { return accountbalance + amount ; }
But I keep getting this error when I build the class:

Code:
possible loss of precision found : double required: int return accountbalance + amount ;
Reply With Quote