How keremozcn/object-oriented-programming-practice works
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 Reservation Example · Library Management System/main.cpp Library Example · Library.cpp Library Manager · Customer.cpp Customer
Components 12
Reservation System
- Reservation Example
Reservation/main.cpp - Customer
Reservation/Customer.cpp - Reservation Record
Reservation/Reservation.cpp - Bookable Service
Reservation/Service.cpp
Library Management
- Library Example
Library Management System/main.cpp - Library Manager
Library Management System/Library.cpp - Book
Library Management System/Book.cpp - Member
Library Management System/Member.cpp
Bank Account
- Account Operations
BankAccount.cpp
Rectangle Geometry
- Rectangle Calculations
Rectangle.cpp
Other components
- Reservation User
- Library User
Connections 14
- Reservation User → Reservation Example: runs example
README.md - Reservation Example → Customer: creates, registers
Reservation/main.cpp - Reservation Example → Bookable Service: creates, books
Reservation/main.cpp - Reservation Example → Reservation Record: creates
Reservation/main.cpp - Reservation Example → Customer: shows reservations
Reservation/main.cpp - Customer → Reservation Record: reads reservation details
Reservation/Customer.cpp - Reservation Record → Bookable Service: references service
- Library User → Library Example: runs example
README.md - Library Example → Library Manager: adds, borrows, returns, views
Library Management System/main.cpp - Library Example → Book: creates books
Library Management System/main.cpp - Library Example → Member: creates members
Library Management System/main.cpp - Library Manager → Book: manages book state
Library Management System/Library.cpp - Library Manager → Member: delegates borrowing
Library Management System/Library.cpp - Member → Book: borrows, returns
Library Management System/Member.cpp