Visual Basic Programming Challenge 11-1 Part 4: Bank Account (VB.net Object Oriented Programming)

preview_player
Показать описание
Introduction to Programming Using Visual Basic
Visual Basic Programming Challenge 11-1 Part 4: Bank Account (VB.net Object Oriented Programming)

The next class to create is Transaction class. This class will handle each transaction on our form: deposits, withdrawals, transfers, and checks.

Write a program to maintain a person's savings and checking accounts. The program should keep track of and display the balances in both accounts, and maintain a list of transactions (deposits, withdrawals, fund transfers, and check clearings) separately for each account. The two lists of transactions are stored in text files.
The program should use two classes: Transaction and Account.
The class Transaction should have properties for transaction name, amount, date, and whether it is a credit (deposit) or a debit (withdrawal / check).
The class Account, which will have both a checking account and a savings account as instances, should use an array if Transaction objects. In addition, it should have properties for name (Checking or Savings) and balance. It should have methods to carry out a transaction (if possible) and to load the set of transactions from a text file. The events InsufficientFunds and TransactionCommitted should be raised at appropriate times.

Learning to code? Follow my VB tutorials for beginners. I do a lot of Visual Basic programming challenges and VB.net projects as part of my homework - every day!
If you are learning to program, nothing beats solving real programming exercises and coding challenges.
So don't forget to subscribe, as I release new programming videos often!

Рекомендации по теме