Skip to content

RishitSrinivas/bank-account-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bank Account System (Java)

A console-based Java application that simulates a simple banking system using object-oriented programming principles. The project models different account types with shared behavior and specialized rules.

Features

  • Abstract base Account class
  • CheckingAccount and SavingsAccount subclasses
  • Account-specific withdrawal rules
  • Interest calculation over time
  • Polymorphic behavior via an account array
  • Console-based test driver

Concepts Demonstrated

  • Object-Oriented Programming (OOP)
  • Abstraction and abstract classes
  • Inheritance and method overriding
  • Polymorphism
  • Encapsulation
  • Static class members
  • Java Time API (LocalDate, ChronoUnit)
  • Business rule enforcement
  • Console I/O

Account Types

CheckingAccount

  • No minimum balance
  • No interest accumulation
  • Unlimited withdrawals

SavingsAccount

  • Minimum balance requirement ($300)
  • Maximum of 3 withdrawals per month
  • Interest accrued monthly based on account age

File Structure

  • Account.java
  • CheckingAccount.java
  • SavingsAccount.java
  • BankTest.java

How to Run

Compile all files:

javac *.java

Run the program:

java BankTest

Output

The program performs multiple withdrawal attempts on each account and displays updated balances, account details, and calculated account values (including interest for savings accounts).

Purpose

This project was created to reinforce core Java and object-oriented programming concepts. It demonstrates class design, inheritance, polymorphism, and business rule enforcement, and is suitable as both an academic project and a portfolio example for software engineering internships.

Author

Rishit Srinivas, Computer Science Student, San José State University

About

Java bank account system demonstrating object-oriented design with inheritance, polymorphism, and business rule enforcement.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages