This project is a Simple Bank Account System implemented in Java using Object-Oriented Programming (OOP) principles as we are currently learning in DCIT201. It allows users to manage bank accounts with basic features like creating accounts, depositing, withdrawing, and checking balances.
- 🏦 Create Accounts
Easily create new accounts with an initial balance. - 💵 Deposit Money
Add funds to your account. - 💸 Withdraw Money
Withdraw money if you have sufficient funds. - 📊 Check Balance
View the current balance in your account. - 💡 Object-Oriented Design
The system is designed using OOP principles, ensuring modularity and reusability.
This is the main class representing a bank account.
accountNumber
: A unique identifier for the account.accountHolderName
: The name of the account holder.balance
: The current balance of the account.
deposit(double amount)
Adds funds to the account balance.withdraw(double amount)
Deducts the specified amount if sufficient funds are available.getBalance()
Returns the current account balance.toString()
Displays the account details in a readable format.
- Install Java Development Kit (JDK) (version 8 or later).
- Use a code editor or IDE like IntelliJ IDEA, Eclipse, or VS Code.
- Clone this repository or download the source code.
- Open the project in your IDE or terminal.
- Compile the Java files:
javac Main.java java Main