Hi queston for c++ could you guys help me with this one thanksand yes I’ll rate you up
Define a class named Account that stores abalance (monetary amount). The class should have a private doublevariable balance. Add one accessorgetBalance function that returns the balance andone deposit function that increases the balance bya given double amount.
Then subclass Account with a SavingsAccountclass. This class should have a private double variableinterest. Add an addInterestfunction that increases the balance (from the superclass Account)according to the interest.
Both classes should have a default constructor and a customconstructor, as follows:
public Account() public Account(double initial)public SavingsAccount()public SavingsAccount(double inter)
Demonstrate the