Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package BankClients;
- import java.time.LocalDate;
- import BankExceptions.BankAgeException;
- import BankPkg.BankUtils;
- public class Client extends Person {
- public Client(String name, int id, LocalDate birthDate) throws Exception {
- super(name, id, birthDate);
- if (this.getAge() < BankUtils.minClientAge)
- throw new BankAgeException(this.getAge());
- }
- public Client(Client other) {
- super(other);
- }
- }
Add Comment
Please, Sign In to add comment