c++: No instance of overloaded function

c++: No instance of overloaded function

In the header you have:

highInterestChecking(std::string = ,int = 0, double = 0.00, double = 0.00, double = 0.00);

Which takes 5 arguments, In the source file you have:

 highInterestChecking::highInterestChecking(string name, int acct, double bal, int numCheck, double min, double i)

                                                                                ^^^^^^^^^^^

which takes 6 arguments. It seems like int numCheck does not match the header signature.

You have this constructor in the class declaration:

highInterestChecking(std::string = ,int = 0, double = 0.00, double = 0.00, double = 0.00);

and this one in the class definition:

highInterestChecking::highInterestChecking(string name, int acct, double bal, int numCheck, double min, double i)

The parameter types from both parameter lists must match.

c++: No instance of overloaded function

  highInterestChecking::highInterestChecking(string name, int acct, 
                           double bal, int numCheck, double min, double i)
                                       //^^^

does not exist in your classs header file, header file has 5 parameters, but you have 6 in cpp file, parameter type seems mismatched,

Leave a Reply

Your email address will not be published.