Hi,
I have problem compiling my program. I have the following in one class(A.h) which knows there a class Job:
const Job *getJob() const;
In A.cpp: I defined this member function like this:
Job A::getJob() const { //statement }
I get this compile error:
prototype for `Job A::getJob() const' does not match any in class `Person'
Why isn't it recognize this function in A.cpp? Thanks.
I have problem compiling my program. I have the following in one class(A.h) which knows there a class Job:
const Job *getJob() const;
In A.cpp: I defined this member function like this:
Job A::getJob() const { //statement }
I get this compile error:
prototype for `Job A::getJob() const' does not match any in class `Person'
Why isn't it recognize this function in A.cpp? Thanks.