This project was developed as an academic exercise to apply the pillars of Object-Oriented Programming: Inheritance, Polymorphism, Encapsulation, and Exception Handling.
ClienteBanco(abstract)PessoaFisica(final)PessoaJuridica(final)Endereco(final)NumException(checked exception)Verifica(interface)TstConta(main test class)
- Register Individual and Legal Entity clients
- Validate CPF (range between 10 and 20)
- Validate responsible person's name (Legal Entity)
- Prevent negative account numbers with a custom exception
- Check if the account number is even or odd
- Compile all
.javafiles:javac *.java - Run
java TstConta