You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
470 B
Java
34 lines
470 B
Java
package _3._1;
|
|
|
|
public class Account {
|
|
|
|
private Customer[] holders;
|
|
private long balance;
|
|
private String iban;
|
|
|
|
public Account(String iban) {
|
|
this.iban = iban;
|
|
}
|
|
|
|
public Customer[] getHolders() {
|
|
return holders;
|
|
}
|
|
|
|
public void setHolders(Customer[] holders) {
|
|
this.holders = holders;
|
|
}
|
|
|
|
public long getBalance() {
|
|
return balance;
|
|
}
|
|
|
|
public void setBalance(long balance) {
|
|
this.balance = balance;
|
|
}
|
|
|
|
public String getIban() {
|
|
return iban;
|
|
}
|
|
|
|
}
|