...
/Challenge 2: Implement a Class Using Pure Virtual Functions
Challenge 2: Implement a Class Using Pure Virtual Functions
In this challenge, we'll implement an account class along with two derived classes saving and current.
We'll cover the following...
Problem Statement
Write a code that has:
- A parent class named
Account
.- Inside it define:
- a protected float member
balance
- a protected float member
- We have three pure virtual functions:
void Withdraw(float amount)
void Deposit(float amount)
void printBalance()
- Inside it define:
- Then, there