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 Teenage extends Account {
- public Teenage(String name, int personId, LocalDate birthDate)
- throws Exception {
- this(new Client(name, personId, birthDate));
- }
- public Teenage(Client owner) throws Exception {
- super(owner, AccountType.teenage);
- }
- public Teenage(Teenage other) {
- super(other);
- }
- }
Add Comment
Please, Sign In to add comment