I'm working on a project that deal a lot with inheritance, I have this base class "Employee" and a derived class "Manager" and whenever I try to create a new manager in the main class it tells I cant because its an abstract class. I ran into the same problem earlier in this program when I was creating the The different kinds of sale objects but I fixed it after I figured out I didn't have all my pure virtual functions defined in the derived classed of Sale. In this case though I have all the virtual function defined in the derived classes so I'm not sure what is making "Manager" abstract.. Any help clearing this up would be greatly appreciated
If a class has pure virtual functions then that class is an abstract class so you can't create objects of the class. Remove = 0; after the function declarations in Manager to make them not "pure".
Wow haha I totally missed that, thanks for pointing that out! I guess that'll teach to me check things over after I copy and paste out of another class! That should do the trick