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
Post a Comment