Question: My main() file does not call to the class created in a .hpp file. It comes out with the error undefined reference to ___ const.

My main() file does not call to the class created in a .hpp file. It comes out with the error "undefined reference to "___" const.

I want to solve this by only changing the main() .cpp file, not the .hpp file.

.cpp file

My main() file does not call to the class created in a

.hpp file

.hpp file. It comes out with the error "undefined reference to "___"

Thank you!

include include tinclude "CourseMember.hpp using namespace std int main0 CourseMember CourseMember(90, "Jeff", "Goldblum"): // initializing the constructor cout class CourseMember public: Parameterized constructor param id the student's unique identifier aram first the student's first rame param last the student 's last name CourseMember (int id, std::string first, std::string last) //xxxxxxxxxx Accessor Methods xxxxxxxxxxxxxxxx /kk @return returns id ; int getIDi const; x greturn returns first name / std::string getFirstName ) const; /x greturn returns last name/ std::string getLastName () const; private: int id. /.. the CourseMember's ID std:string first name ; /Ak the CourseMember's first name std::string last name: the CourseMember's last name " : //end CourseMember #endif /* CourseMember. Ipp */

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!