uouo
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package intro.bank;
|
||||
|
||||
public class ContoCorrenteCurrency extends ContoCorrente {
|
||||
private Currency currency;
|
||||
|
||||
public ContoCorrenteCurrency(String owner, Currency currency) {
|
||||
super(owner);
|
||||
this.currency = currency;
|
||||
}
|
||||
public ContoCorrenteCurrency(String owner, Integer balance, Currency currency) {
|
||||
super(owner, balance);
|
||||
this.currency = currency;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return super.toString().substring(0,super.toString().length()-1)+" "+this.currency+"]";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user