// SavingsAccount.h

#ifndef SAVINGSACCOUNT_H
#define SAVINGSACCOUNT_H

#include "BankAccount.h"

class SavingsAccount: public BankAccount
{
public:
  SavingsAccount(double initialAmount, double newInterestRate);
  void postInterest();
    // adds interest to balance
    // interest is calculated as: balance * interestRate / 100.0
private:
  double interestRate; // interest rate
};

/* Note that interestRate is in percentage, (e.g., 3.5%). */

#endif

