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
+18
View File
@@ -0,0 +1,18 @@
package intro.bank;
public class TestContoCorrente {
public static void main(String[] args) {
ContoCorrenteCurrency c1 = new ContoCorrenteCurrency("c1", 1000, Currency.USD);
ContoCorrenteCurrency c2 = new ContoCorrenteCurrency("c2", Currency.EUR);
ContoCorrenteCurrency c3 = new ContoCorrenteCurrency("c3",2000, Currency.GBP);
System.out.println(c1);
System.out.println(c2);
System.out.println(c3);
c2.setBalance(c2.getBalance()+200);
c3.setBalance(c3.getBalance()-1200);
System.out.println(c2);
System.out.println(c3);
}
}