Files
algoritmi_strutturedati/intro/bank/ContoCorrenteCurrency.java
T

19 lines
512 B
Java
Raw Normal View History

2022-05-23 23:11:51 +02:00
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+"]";
}
}