# OOP Project - Clinic Management System in JavaA simple console application written in Java to demonstrate core Object-Oriented Programming (OOP) concepts. This project, built using the NetBeans IDE, implements a basic system for managing a doctor's clinic, including patients, doctors, and appointments.
The program was designed to exemplify key OOP principles:
- Classes and Objects: Defines clear classes for
Pessoa(Person),Paciente(Patient),Medico(Doctor),Consulta(Appointment),Exame(Exam), andMedicacao(Medication).- Inheritance:
PacienteandMedicoinherit common attributes (like CPF and name) from the basePessoaclass.- Association/Composition: Demonstrates relationships between objects. A
Consultalinks aMedicoand aPaciente, and it can also contain a list ofExameandMedicacaoobjects.- Console Demonstration: The main file (likely
ProjetoPOO.java) instantiates these classes to simulate creating entities and scheduling appointments, printing the results to the console.
This project was developed in Java and requires the Java Development Kit (JDK) to be installed. It is structured as an Apache NetBeans project.
Clone the repository:
git clone https://github.com/Quasar-Inc-Dev/ProjetoPOO.git cd ProjetoPOORun using Apache NetBeans (Recommended):
- Open the NetBeans IDE.
- Go to
File>Open Project...- Navigate to and select the cloned
ProjetoPOOfolder (the one with thenbprojectdirectory).- Press
F6or click the "Run Project" (▶) button.Run Manually (using Command Line): If you don't have NetBeans, you can compile and run the files manually.
# Navigate to the source files directory cd ProjetoPOO/src
# Compile all .java files javac projetopoo/*.java
# Run the main class java projetopoo.ProjetoPOO ```
- Usage: The program will run in the console, display its output, and then exit. It's a non-interactive demo.
- Java Language
- Java Development Kit (JDK)
- Apache NetBeans (IDE)