oop - Polymorphism Error C++ -


i'm trying create object these classes , error in main() on line:

employee1->employeeid(29); 

the error says "employeeid set protected", should work. appreciated thx :)

here's code below:

code deleted*

well compiler correct, employeeid protected. sure didn't mean use setemployeeid instead?

e.g.

employee1->setemployeeid(29); 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -