Skip to content

github-community-gitam/EPOCH4.0-OOPSiees

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OOPSiess!! Club Bank System (JAVA)

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.


Key Features

  • 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 SavingsAccount class extends the base Account class.
  • Polymorphism: The SavingsAccount withdrawal method is customized to enforce a minimum balance rule.

How to Run the Application

These instructions assume you have the Java Development Kit (JDK 17+) and Git installed.

1. Clone the Repository

Open your terminal and clone the project using the official URL:

git clone https://github.com/github-community-gitam/EPOCH4.0-OOPSiees.git
cd BankSystemJAVA

2. Running the application

javac src/bank/*.java -d bin
java -cp bin bank.MainApp

Quick Start Guide

  1. Start the application and select option 1 (Create New Account).

  2. Input a name, an initial deposit (e.g., 500), and the type (Savings or Other).

  3. Note the Account Number (e.g., 1000) displayed in the output.

  4. Use that number with options 2, 3, or 4 to perform transactions.

Project Directory Structure

src/bank/

  • 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.

bin/

  • Description: Directory holding all compiled .class files.

README.md

  • Location: Root
  • Description: This document.

CONTRIBUTING.md

  • Location: Root
  • Description: Guidelines for collaborators.

About

Repo for DevArc - EPOCH 4.0

Topics

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages