Skip to content

Instantly share code, notes, and snippets.

@tmn
Created March 16, 2014 20:34
Show Gist options
  • Save tmn/9589480 to your computer and use it in GitHub Desktop.
Save tmn/9589480 to your computer and use it in GitHub Desktop.
public class Bsu extends SavingsAccount {
double maxDeposite;
public Bsu (double maxDeposite) {
this.maxDeposite = maxDeposite;
}
// setters and getts ++ ...
@Override
public void deposite(double sum) {
if (sum <= this.maxDeposite) {
super.deposite(sum);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment