mmayoub

Bank, Solider class (account type)

Aug 10th, 2017
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.49 KB | None | 0 0
  1. package BankAccounts;
  2.  
  3. import java.time.LocalDate;
  4.  
  5. import BankClients.Client;
  6. import BankPkg.AccountType;
  7.  
  8. public class Soldier extends Account {
  9.  
  10.     public Soldier(String personName, int personId, LocalDate birthDate)
  11.             throws Exception {
  12.         this(new Client(personName, personId, birthDate));
  13.         // TODO Auto-generated constructor stub
  14.     }
  15.  
  16.     public Soldier(Client owner) throws Exception {
  17.         super(owner, AccountType.soldier);
  18.     }
  19.  
  20.     public Soldier(Soldier other) {
  21.         super(other);
  22.     }
  23. }
Add Comment
Please, Sign In to add comment