This is a simple console-based application built in Java to demonstrate core Object-Oriented Programming (OOP) principles: Encapsulation, Inheritance, and Polymorphism.
The system simulates basic banking operations for managing different account types.
- Account Types: Supports creation of Standard and Savings Accounts.
- Core Transactions: Deposit and withdraw funds.
- Balance Inquiry: Check the current balance of any account.
- Inheritance in Action: The
SavingsAccountclass extends the baseAccountclass. - Polymorphism: The
SavingsAccountwithdrawal method is customized to enforce a minimum balance rule.
These instructions assume you have the Java Development Kit (JDK 17+) and Git installed.
Open your terminal and clone the project using the official URL:
git clone https://github.com/github-community-gitam/EPOCH4.0-OOPSiees.git
cd BankSystemJAVAjavac src/bank/*.java -d bin
java -cp bin bank.MainApp
-
Start the application and select option 1 (Create New Account).
-
Input a name, an initial deposit (e.g., 500), and the type (Savings or Other).
-
Note the Account Number (e.g., 1000) displayed in the output.
-
Use that number with options 2, 3, or 4 to perform transactions.
-
Account.java
Location: src/bank/
Description: The Base Class defining core logic and attributes. -
SavingsAccount.java
Location: src/bank/
Description: Subclass implementing minimum balance rule (Inheritance). -
Bank.java
Location: src/bank/
Description: The Manager Class holding the list of all accounts. -
MainApp.java
Location: src/bank/
Description: The Entry Point containing the main menu and user interface.
- Description: Directory holding all compiled .class files.
- Location: Root
- Description: This document.
- Location: Root
- Description: Guidelines for collaborators.