DartBank is a simple command-line banking application developed in Dart, demonstrating object-oriented programming principles. The project includes features such as account creation, deposits, withdrawals, and balance inquiries.
- Apply the 4 pillars of OOP in a real-world scenario
- Implement classes, inheritance, encapsulation, and polymorphism in Dart
- Practice Dart programming language features and syntax
- Create a solid base for future projects using OOP principles
- Polymorphism in banking operations
- Encapsulation of sensitive data
- Abstraction for different account types
To install Dart with apt-get, perform the following steps.
-
Clone the repository:
git clone git@github.com:pedroazevedoc/dartBank.git cd dartBank -
Update the package index files and install the secure HTTP package.
sudo apt-get update && sudo apt-get install apt-transport-https -
Download and add the Google Linux GPG public key.
wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub \ | sudo gpg --dearmor -o /usr/share/keyrings/dart.gpg -
Add the Dart package repository to your Linux system.
echo 'deb [signed-by=/usr/share/keyrings/dart.gpg arch=amd64] https://storage.googleapis.com/download.dartlang.org/linux/debian stable main' \ | sudo tee /etc/apt/sources.list.d/dart_stable.list
Substitute amd64 with armhf, arm64, or riscv64 as needed for your system.
-
Use the following sudo apt-get commands.
sudo apt-get update && sudo apt-get install dart
To run the DartBank project, navigate to the project directory and execute the following command:
dart run bin/dartBank.dart