Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package BankAccounts;
- import java.time.LocalDate;
- import BankClients.Client;
- import BankPkg.AccountType;
- public class Soldier extends Account {
- public Soldier(String personName, int personId, LocalDate birthDate)
- throws Exception {
- this(new Client(personName, personId, birthDate));
- // TODO Auto-generated constructor stub
- }
- public Soldier(Client owner) throws Exception {
- super(owner, AccountType.soldier);
- }
- public Soldier(Soldier other) {
- super(other);
- }
- }
Add Comment
Please, Sign In to add comment