https://github.com/ecopque/simple_banking_system
This script set creates a simple banking system, just as a demonstration of the use of object-oriented concepts, including abstraction, encapsulation, and polymorphism.
https://github.com/ecopque/simple_banking_system
Last synced: over 1 year ago
JSON representation
This script set creates a simple banking system, just as a demonstration of the use of object-oriented concepts, including abstraction, encapsulation, and polymorphism.
- Host: GitHub
- URL: https://github.com/ecopque/simple_banking_system
- Owner: ecopque
- Created: 2023-10-05T14:56:11.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-28T18:38:23.000Z (almost 2 years ago)
- Last Synced: 2025-01-26T19:44:08.675Z (over 1 year ago)
- Language: Python
- Homepage: https://linktr.ee/edsoncopque
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Banking System
This Python script demonstrates a simple banking system implemented using object-oriented programming principles such as abstraction, encapsulation, and polymorphism.
Overview
## The project consists of three main modules:
- contas.py: Defines abstract classes for bank accounts (Conta) and specific types of accounts such as savings (ContaPoupanca) and current accounts (ContaCorrente). It includes methods for depositing and withdrawing money from accounts.
- pessoas.py: Defines classes for individuals (Pessoa) and clients (Cliente). A client can have a bank account associated with them.
- banco.py: Defines the Banco class, which represents a bank and provides methods for authenticating clients and managing accounts.
## Usage
- Run the banco.py script to create a bank instance.
- Instantiate clients and accounts using classes defined in pessoas.py and contas.py.
- Add clients and accounts to the bank instance.
- Authenticate clients and perform banking operations such as depositing and withdrawing money.