io odio intelli j
This commit is contained in:
@@ -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+"]";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user