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

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -