Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package BankServices;
- import java.util.LinkedList;
- import java.util.List;
- public class Account {
- List<Deposit> deposits = new LinkedList<>();
- List<Withdrawal> withdrawals = new LinkedList<>();
- List<Operation> operations = new LinkedList<>();
- private String name;
- private int code;
- private int date;
- private double initial;
- private double value;
- public Account(String name, int date, double initial){
- this.name=name;
- this.date=date;
- this.initial=initial;
- }
- public String toString() {
- return code+","+name+"," + date + ","+ value;
- }
- public List<Operation> getMovements() {
- return operations;
- }
- public List<Deposit> getDeposits() {
- return deposits;
- }
- public List<Withdrawal> getWithdrawals() {
- return withdrawals;
- }
- public double getInitial() {
- // TODO Auto-generated method stub
- return initial;
- }
- public double getValue() {
- // TODO Auto-generated method stub
- return value;
- }
- public void addValue(double v) {
- // TODO Auto-generated method stub
- }
- public int getDate() {
- // TODO Auto-generated method stub
- return date;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement