Hello again
I am a bit confused about how to show a constant in a class constructor. I have a savings account class (A child class of Account) which has a constant interest rate. I have it in my class as a static constant double INTEREST_RATE;. Then outside of my class I have given it a value double Savings::INTEREST_RATE = 0.03;. I also have a double getInterestRate() which returns INTEREST_RATE;. I just don't know how to show it in the class constructor. Here is what I have. In anticipation, thank you.
Savings::Savings (int acctNum, double bal, const double rate) :
Account (acctNum, bal), getInterestRate() //I know this is wrong,
//it is just the last thing I tried
{}