# uniajc-gperezm/practicaherencia architecture

> Architecture diagram of the GitHub repository uniajc-gperezm/practicaherencia, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-03-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/uniajc-gperezm/practicaherencia
- Repository: https://github.com/uniajc-gperezm/practicaherencia

## Overview

##### Project Type and Purpose
- The project is a Java application designed primarily as a practice exercise in object-oriented inheritance ("Herencia").
- Its purpose appears to be educational, focusing on demonstrating class inheritance and the relationships between a base account class (Cuenta) and its specialized forms (CuentaAhorros and CuentaCorriente).

##### Analyzing the File Structure
- Top-level files indicate that the project is built with Ant (see build.xml) and is managed within a NetBeans project structure (nbproject folder).
- The source code is located under the “src” directory, with classes placed in the package “com.uniajc”.
- The main classes include:
- Cuenta.java (base class)
- CuentaAhorros.java (likely a subclass representing a savings account)
- CuentaCorriente.java (likely a subclass representing a checking account)
- PracticaHerenciaPoo.java (probably the entry point that demonstrates using the inheritance hierarchy)

a. Main Components to Include:
- Application Entry Point: PracticaHerenciaPoo
- Domain Model Classes:
- Cuenta (Base class that defines the common attributes & behaviors of an account)
- CuentaAhorros (Derived from Cuenta; includes savings-specific functionalities)
- CuentaCorriente (Derived from Cuenta; includes checking-specific functionalities)
- Project/Tooling Elements: Ant build process (build.xml) and NetBeans configuration (nbproject), which can be shown as peripheral components that manage project setup and build automation.

b. Relationships and Interactions:
- That PracticaHerenciaPoo interacts with or instantiates these classes to demonstrate the object-oriented principles in action.

c. Highlighting Important Architectural Patterns:
- That the design is object-oriented and follows standard class extension principles in Java.

d. Technologies and Frameworks:
- Java is the programming language.
- Apache Ant (via build.xml) for project builds.
- NetBeans IDE, as indicated by the nbproject folder.

## Diagram (Mermaid)

```mermaid
flowchart TD
    subgraph "Domain Model"
        PH["PracticaHerenciaPoo"]:::entrypoint
        CU["Cuenta"]:::domain
        CA["CuentaAhorros"]:::domain
        CC["CuentaCorriente"]:::domain
    end

    subgraph "Development Tools"
        ANT["build.xml"]:::tool
        NB["nbproject"]:::tool
    end

    CA -->|"is-a"| CU
    CC -->|"is-a"| CU
    PH -->|"creates"| CA
    PH -->|"creates"| CC
    ANT -->|"builds"| PH
    NB -->|"configures"| ANT

    click PH "https://github.com/uniajc-gperezm/practicaherencia/blob/main/src/com/uniajc/PracticaHerenciaPoo.java"
    click CU "https://github.com/uniajc-gperezm/practicaherencia/blob/main/src/com/uniajc/Cuenta.java"
    click CA "https://github.com/uniajc-gperezm/practicaherencia/blob/main/src/com/uniajc/CuentaAhorros.java"
    click CC "https://github.com/uniajc-gperezm/practicaherencia/blob/main/src/com/uniajc/CuentaCorriente.java"
    click ANT "https://github.com/uniajc-gperezm/practicaherencia/blob/main/build.xml"
    click NB "https://github.com/uniajc-gperezm/practicaherencia/tree/main/nbproject"

    classDef domain fill:#AED6F1,stroke:#2471A3,stroke-width:2px;
    classDef entrypoint fill:#F9E79F,stroke:#B7950B,stroke-width:2px;
    classDef tool fill:#A9DFBF,stroke:#27AE60,stroke-width:2px;
```
