Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: made imports explicit.

...

Code Block
bgColor#ffcccc
package user;
import account.*AccountHolder;
public class UserDetails extends AccountHolder {
  public synchronized double getUserBalance(String accountNumber) {
    // Use a method of AccountHolder to get the account balance 
    return getBalance(accountNumber); 
  }
}

 
public class User {
  public boolean exists(String username) { 
    // Check whether user exists 
    return true; // Exists
  }
}

...