I get the error: expression must have a class type Firstly, I don\'t understand why I am getting this error. I create and object and use it. in my main:
#in
Assuming the implementation of the Worker class is ok and no other errors,
int main() { Worker myWorker; myWorker.inputInfo(); myWorker.displayPayBarGraph(); }