Skip to content

Repository files navigation

🏦 Java Banking System - OOP

This project was developed as an academic exercise to apply the pillars of Object-Oriented Programming: Inheritance, Polymorphism, Encapsulation, and Exception Handling.

🧱 Project Structure

  • ClienteBanco (abstract)
  • PessoaFisica (final)
  • PessoaJuridica (final)
  • Endereco (final)
  • NumException (checked exception)
  • Verifica (interface)
  • TstConta (main test class)

⚙️ Features

  • 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
Captura de tela 2026-06-01 142451

▶️ How to run

  1. Compile all .java files:
    javac *.java
    
  2. Run
    java TstConta

About

Este projeto em Java implementa um sistema bancário simples utilizando os conceitos de Programação Orientada a Objetos (POO): herança, polimorfismo, encapsulamento e tratamento de exceções.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages