Created
March 16, 2014 20:34
-
-
Save tmn/9589480 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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