# keremozcn/object-oriented-programming-practice architecture

> Architecture diagram of the GitHub repository keremozcn/object-oriented-programming-practice, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/keremozcn/object-oriented-programming-practice
- Repository: https://github.com/keremozcn/object-oriented-programming-practice

## Overview

This repository is a collection of four independent OOP examples, not one integrated application. The main workflows are: a user exercises reservation booking through a customer, service, and reservation; a library user adds books and members, borrows and returns books, and views library state. Bank-account operations and rectangle calculations are standalone examples. Reservation and library call relationships are supported by the sampled entry points and implementations; the README documents the standalone examples, whose internal details are not sampled.

Main entry points: [`Reservation/main.cpp`](https://github.com/keremozcn/object-oriented-programming-practice/blob/main/Reservation/main.cpp) (Reservation Example), [`Library Management System/main.cpp`](https://github.com/keremozcn/object-oriented-programming-practice/blob/main/Library%20Management%20System/main.cpp) (Library Example), [`Library Management System/Library.cpp`](https://github.com/keremozcn/object-oriented-programming-practice/blob/main/Library%20Management%20System/Library.cpp) (Library Manager), [`Reservation/Customer.cpp`](https://github.com/keremozcn/object-oriented-programming-practice/blob/main/Reservation/Customer.cpp) (Customer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_reservation["Reservation System"]
  node_reservation_main["Reservation Example<br/>[main.cpp]"]
  node_customer["Customer<br/>[Customer.cpp]"]
  node_reservation_record["Reservation Record<br/>[Reservation.cpp]"]
  node_service["Bookable Service<br/>[Service.cpp]"]
end

subgraph group_library["Library Management"]
  node_library_main["Library Example<br/>[main.cpp]"]
  node_library_manager["Library Manager<br/>[Library.cpp]"]
  node_book["Book<br/>[Book.cpp]"]
  node_member["Member<br/>[Member.cpp]"]
end

subgraph group_bank["Bank Account"]
  node_bank_example["Account Operations<br/>[BankAccount.cpp]"]
end

subgraph group_geometry["Rectangle Geometry"]
  node_rectangle_example["Rectangle Calculations<br/>[Rectangle.cpp]"]
end

node_reservation_user(("Reservation User"))
node_library_user(("Library User"))

node_reservation_user -->|"runs example"| node_reservation_main
node_reservation_main -->|"creates, registers"| node_customer
node_reservation_main -->|"creates, books"| node_service
node_reservation_main -->|"creates"| node_reservation_record
node_reservation_main -->|"shows reservations"| node_customer
node_customer -->|"reads reservation details"| node_reservation_record
node_reservation_record -->|"references service"| node_service
node_library_user -->|"runs example"| node_library_main
node_library_main -->|"adds, borrows, returns, views"| node_library_manager
node_library_main -->|"creates books"| node_book
node_library_main -->|"creates members"| node_member
node_library_manager -->|"manages book state"| node_book
node_library_manager -->|"delegates borrowing"| node_member
node_member -->|"borrows, returns"| node_book

click node_reservation_main "https://github.com/keremozcn/object-oriented-programming-practice/blob/main/Reservation/main.cpp"
click node_customer "https://github.com/keremozcn/object-oriented-programming-practice/blob/main/Reservation/Customer.cpp"
click node_reservation_record "https://github.com/keremozcn/object-oriented-programming-practice/blob/main/Reservation/Reservation.cpp"
click node_service "https://github.com/keremozcn/object-oriented-programming-practice/blob/main/Reservation/Service.cpp"
click node_library_main "https://github.com/keremozcn/object-oriented-programming-practice/blob/main/Library%20Management%20System/main.cpp"
click node_library_manager "https://github.com/keremozcn/object-oriented-programming-practice/blob/main/Library%20Management%20System/Library.cpp"
click node_book "https://github.com/keremozcn/object-oriented-programming-practice/blob/main/Library%20Management%20System/Book.cpp"
click node_member "https://github.com/keremozcn/object-oriented-programming-practice/blob/main/Library%20Management%20System/Member.cpp"
click node_bank_example "https://github.com/keremozcn/object-oriented-programming-practice/blob/main/BankAccount.cpp"
click node_rectangle_example "https://github.com/keremozcn/object-oriented-programming-practice/blob/main/Rectangle.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_reservation_main,node_customer,node_reservation_record,node_service,node_reservation_user,node_library_user toneBlue
class node_library_main,node_library_manager,node_book,node_member toneAmber
class node_bank_example toneMint
class node_rectangle_example toneRose
```

## Components

### Reservation System

- [Reservation Example](https://github.com/keremozcn/object-oriented-programming-practice/blob/main/Reservation/main.cpp): `Reservation/main.cpp`
- [Customer](https://github.com/keremozcn/object-oriented-programming-practice/blob/main/Reservation/Customer.cpp): `Reservation/Customer.cpp`
- [Reservation Record](https://github.com/keremozcn/object-oriented-programming-practice/blob/main/Reservation/Reservation.cpp): `Reservation/Reservation.cpp`
- [Bookable Service](https://github.com/keremozcn/object-oriented-programming-practice/blob/main/Reservation/Service.cpp): `Reservation/Service.cpp`

### Library Management

- [Library Example](https://github.com/keremozcn/object-oriented-programming-practice/blob/main/Library%20Management%20System/main.cpp): `Library Management System/main.cpp`
- [Library Manager](https://github.com/keremozcn/object-oriented-programming-practice/blob/main/Library%20Management%20System/Library.cpp): `Library Management System/Library.cpp`
- [Book](https://github.com/keremozcn/object-oriented-programming-practice/blob/main/Library%20Management%20System/Book.cpp): `Library Management System/Book.cpp`
- [Member](https://github.com/keremozcn/object-oriented-programming-practice/blob/main/Library%20Management%20System/Member.cpp): `Library Management System/Member.cpp`

### Bank Account

- [Account Operations](https://github.com/keremozcn/object-oriented-programming-practice/blob/main/BankAccount.cpp): `BankAccount.cpp`

### Rectangle Geometry

- [Rectangle Calculations](https://github.com/keremozcn/object-oriented-programming-practice/blob/main/Rectangle.cpp): `Rectangle.cpp`

### Other components

- **Reservation User**
- **Library User**

## Connections

- Reservation User → Reservation Example: runs example (evidence: `README.md`)
- Reservation Example → Customer: creates, registers (evidence: `Reservation/main.cpp`)
- Reservation Example → Bookable Service: creates, books (evidence: `Reservation/main.cpp`)
- Reservation Example → Reservation Record: creates (evidence: `Reservation/main.cpp`)
- Reservation Example → Customer: shows reservations (evidence: `Reservation/main.cpp`)
- Customer → Reservation Record: reads reservation details (evidence: `Reservation/Customer.cpp`)
- Reservation Record → Bookable Service: references service
- Library User → Library Example: runs example (evidence: `README.md`)
- Library Example → Library Manager: adds, borrows, returns, views (evidence: `Library Management System/main.cpp`)
- Library Example → Book: creates books (evidence: `Library Management System/main.cpp`)
- Library Example → Member: creates members (evidence: `Library Management System/main.cpp`)
- Library Manager → Book: manages book state (evidence: `Library Management System/Library.cpp`)
- Library Manager → Member: delegates borrowing (evidence: `Library Management System/Library.cpp`)
- Member → Book: borrows, returns (evidence: `Library Management System/Member.cpp`)
