mmayoub

Bank, Business class (account type)

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