finish
This commit is contained in:
parent
608c59d3e3
commit
94342b01c4
@ -1,14 +1,14 @@
|
|||||||
package bank;
|
package bank;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a bank account with specification :
|
* Create a bank account with specification : compte courant
|
||||||
* -
|
* - you can set a minimum Balance
|
||||||
*/
|
*/
|
||||||
public class Checking extends BankAccount{
|
public class Checking extends BankAccount{
|
||||||
private double minBalance;
|
private double minBalance;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* Create a new account checking with all parameters
|
||||||
* @param owner
|
* @param owner
|
||||||
* @param amount
|
* @param amount
|
||||||
* @param minBalance
|
* @param minBalance
|
||||||
@ -32,7 +32,7 @@ public class Checking extends BankAccount{
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* Set the minimum Balance
|
||||||
* @param minBalance
|
* @param minBalance
|
||||||
*/
|
*/
|
||||||
protected void setMinBalance(double minBalance) {
|
protected void setMinBalance(double minBalance) {
|
||||||
@ -44,15 +44,16 @@ public class Checking extends BankAccount{
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* Get the minimum balance
|
||||||
* @return
|
* @return the minimum balance
|
||||||
*/
|
*/
|
||||||
public double getMinBalance() {
|
public double getMinBalance() {
|
||||||
return minBalance;
|
return minBalance;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* Specification : you can withdraw an amount to a minimum balance
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean withdraw(double amount){
|
public boolean withdraw(double amount){
|
||||||
|
Reference in New Issue
Block a user