mmayoub

Bank, Regular class (account type)

Aug 10th, 2017
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.44 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 Regular extends Account {
  9.  
  10.     public Regular(String name, int personId, LocalDate birthDate)
  11.             throws Exception {
  12.         this(new Client(name, personId, birthDate));
  13.     }
  14.  
  15.     public Regular(Client owner) throws Exception {
  16.         super(owner, AccountType.regular);
  17.     }
  18.  
  19.     public Regular(Regular other) {
  20.         super(other);
  21.     }
  22. }
Add Comment
Please, Sign In to add comment