c++: No instance of overloaded function -


highinterestchecking header:

#ifndef h_highinterestchecking #define h_highinterestchecking #include "noservicechargechecking.h" #include <string>  class highinterestchecking: public noservicechargechecking { public:     highinterestchecking(std::string =" ",int = 0, double = 0.00, double = 0.00, double = 0.00); }; #endif 

highinterestchecking cpp:

#include "highinterestchecking.h" using std::string;  highinterestchecking::highinterestchecking(string name, int acct, double bal, int numcheck, double min, double i) {     bankaccount::setacctownersname(name);     bankaccount::setacctnum(acct);     bankaccount::setbalance(bal);     checkingaccount::setchecks(numcheck);     noservicechargechecking::setminbalance(min);     noservicechargechecking::setinterestrate(i); } 

i have error "no instance of overloaded function." under constructor name highinterestchecking in cpp file not sure causing ive looked @ while can't seem find error. maybe help?

in header have:

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

which takes 5 arguments, in source file have:

 highinterestchecking::highinterestchecking(string name, int acct, double bal, int numcheck, double min, double i)                                                                                  ^^^^^^^^^^^ 

which takes 6 arguments. seems int numcheck not match header signature.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -