# abdul-mannan-123/bank-management-system-c-oop-project- architecture

> Architecture diagram of the GitHub repository abdul-mannan-123/bank-management-system-c-oop-project-, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/abdul-mannan-123/bank-management-system-c-oop-project-
- Repository: https://github.com/abdul-mannan-123/bank-management-system-c-oop-project-

## Overview

This is a small, single-file console banking simulation. A user supplies account details and selects an account type; the program creates the corresponding account, saves its initial details, then offers deposit, withdrawal, balance display, and money-send operations. Current and savings accounts implement the shared abstract account behavior. The README also describes account-number generation and persistent loading, but these are not present in the sampled source, so they are not shown as implemented flows.

Main entry points: [`main.cpp`](https://github.com/abdul-mannan-123/bank-management-system-c-oop-project-/blob/main/main.cpp) (Account menu)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Banking application"]
  node_console["Account menu<br/>[main.cpp]"]
  node_account_files[("Account text files")]
end

subgraph group_accounts["Account types"]
  node_account["Bank account<br/>[main.cpp]"]
  node_current["Current account<br/>[main.cpp]"]
  node_savings["Savings account<br/>[main.cpp]"]
end

node_customer(("Customer"))

node_customer -->|"enters details"| node_console
node_console -->|"creates"| node_current
node_console -->|"creates"| node_savings
node_current -->|"inherits"| node_account
node_savings -->|"inherits"| node_account
node_console -->|"dispatches operations"| node_account
node_account -->|"writes details"| node_account_files
node_customer -->|"requests banking actions"| node_console

click node_console "https://github.com/abdul-mannan-123/bank-management-system-c-oop-project-/blob/main/main.cpp"
click node_account "https://github.com/abdul-mannan-123/bank-management-system-c-oop-project-/blob/main/main.cpp"
click node_current "https://github.com/abdul-mannan-123/bank-management-system-c-oop-project-/blob/main/main.cpp"
click node_savings "https://github.com/abdul-mannan-123/bank-management-system-c-oop-project-/blob/main/main.cpp"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_console,node_account_files toneBlue
class node_account,node_current,node_savings toneAmber
class node_customer toneIndigo
```

## Components

### Banking application

- [Account menu](https://github.com/abdul-mannan-123/bank-management-system-c-oop-project-/blob/main/main.cpp): `main.cpp`
- **Account text files**

### Account types

- [Bank account](https://github.com/abdul-mannan-123/bank-management-system-c-oop-project-/blob/main/main.cpp): `main.cpp`
- [Current account](https://github.com/abdul-mannan-123/bank-management-system-c-oop-project-/blob/main/main.cpp): `main.cpp`
- [Savings account](https://github.com/abdul-mannan-123/bank-management-system-c-oop-project-/blob/main/main.cpp): `main.cpp`

### Other components

- **Customer**

## Connections

- Customer → Account menu: enters details (evidence: `main.cpp`)
- Account menu → Current account: creates (evidence: `main.cpp`)
- Account menu → Savings account: creates (evidence: `main.cpp`)
- Current account → Bank account: inherits (evidence: `main.cpp`)
- Savings account → Bank account: inherits (evidence: `main.cpp`)
- Account menu → Bank account: dispatches operations (evidence: `main.cpp`)
- Bank account → Account text files: writes details (evidence: `main.cpp`)
- Customer → Account menu: requests banking actions (evidence: `main.cpp`)
