io odio intelli j

This commit is contained in:
sco
2022-05-31 19:49:22 +02:00
parent 6347006870
commit e799158be4
16 changed files with 0 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
package intro.bank;
public class ContoCorrente {
private int balance;
private String owner;
public ContoCorrente(String owner) {
this.balance = 0;
this.owner = owner;
}
public ContoCorrente(String owner, Integer balance) {
this.balance = balance;
this.owner = owner;
}
public int getBalance() {
return balance;
}
public void setBalance(int balance) {
this.balance = balance;
}
public String getOwner() {
return owner;
}
@Override
public String toString() {
return "ContoCorrente[Owner: "+this.owner+" Balance: "+this.balance+"]";
}
}