A simple ATM simulation developed using Java and object-oriented programming concepts. The application allows users to perform basic banking operations through a menu-driven console interface.
- Check Balance: Display the current account balance.
- Deposit: Add money to the bank account.
- Withdraw: Withdraw money when sufficient balance is available.
- Input Validation: Reject invalid deposit and withdrawal amounts.
- Insufficient Balance Check: Prevent withdrawals exceeding the available balance.
- Menu-driven Interface: Navigate through banking operations.
- Java
- Object-Oriented Programming (OOP)
- Classes and Objects
- Constructors
- Encapsulation
- Scanner Class
```text ATM_Interface/ ├── src/ │ ├── Main.java │ ├── ATM.java │ └── BankAccount.java └── README.md ```
-
Clone the repository:
```bash git clone https://github.com/ItsHardikSoni/ATM_Interface.git ```
-
Navigate to the project:
```bash cd ATM_Interface ```
-
Compile the Java files:
```bash javac -d out src/*.java ```
-
Run the application:
```bash java -cp out Main ```
- Create a bank account with an initial balance.
- Display the ATM menu.
- Select an operation.
- Perform the selected banking operation.
- Continue until the user exits.
- Applying OOP principles in Java.
- Working with multiple classes.
- Understanding constructors and object initialization.
- Implementing basic banking operations.
- Applying validation to financial inputs.
This is an educational console-based simulation. It is not connected to a real banking system and does not implement production-grade authentication or transaction processing.
Ayush