...

/

Challenge 1: Implement an Account Class Using Virtual Functions

Challenge 1: Implement an Account Class Using Virtual Functions

In this challenge, we'll implement an account class along with two derived classes saving and current.

Problem Statement

Write a code that has:

  • A parent class named Account.
    • Inside it define:
      • a protected float member balance
    • We have three virtual functions:
      • void Withdraw(float amount)
      • void Deposit(float amount)
      • void printBalance()
...