A simple Banking Management System implemented in TypeScript using Object-Oriented Programming (OOP) principles. This project demonstrates the concepts of inheritance and polymorphism through a basic banking application.
- Account Management: Create and manage different types of bank accounts.
- Deposits and Withdrawals: Perform deposits and withdrawals on accounts.
- Account Listing: List all accounts and their details.
- TypeScript
- Node.js (optional for running the project)
- OOP Principles
-
Account: Base class for all account types.
- Properties:
accountNumber
,accountHolder
,balance
- Methods:
deposit()
,withdraw()
,getDetails()
- Properties:
-
SavingsAccount: Inherits from
Account
and adds an interest rate.- Additional Property:
interestRate
- Overridden Method:
getDetails()
- Additional Property:
-
CurrentAccount: Inherits from
Account
and adds an overdraft limit.- Additional Property:
overdraftLimit
- Overridden Method:
getDetails()
- Additional Property:
-
Bank: Manages all bank accounts.
- Properties:
accounts
(array ofAccount
) - Methods:
addAccount()
,listAccounts()
,findAccount()
- Properties:
- Clone the repository:
git clone https://github.com/AsheemRahman/Banking-Management-System-TypeScript.git cd Banking-Management-System-TypeScript
- Install dependencies:
npm install
- Compile TypeScript to JavaScript
tsc
- Run the application:
node public/index.js