A simple console-based banking program written in C++, allowing users to deposit, withdraw, and check their account balance.
Built to demonstrate Object-Oriented Programming (OOP) concepts.
✅ Deposit money into your account.
✅ Withdraw funds safely (with balance validation).
✅ Check your current account balance.
✅ Menu-driven interface.
The program follows Object-Oriented Programming principles, with all logic wrapped in the Account class.
- Implemented key methods:
deposit(),withdraw(), andcheckBalance(). - Used a constructor to initialize the
balanceattribute automatically when an object is created. - Included validation checks to prevent invalid transactions (e.g., negative deposits or overdrafts).
Tool and their Purpose
| C++ | Core programming language |
| OOP (Classes & Methods) | Code structure and logic |
| Standard Library (iostream, string) | Input/Output and data handling |
- Clone the repository:
git clone https://github.com/yourusername/mini-banking-system.git cd mini-banking-system - Compile the program
g++ src/main.cpp -o main.exe
- Run it
./main.exe