This commit is contained in:
sco
2022-05-23 23:11:51 +02:00
parent 183736b4e6
commit ab5c3ee991
13 changed files with 305 additions and 0 deletions
+19
View File
@@ -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+"]";
}
}