[Solved] Polymorphism and pure virtual functions [closed]
What is illegal is: Employee is an abstract base class. This line: Employee joe; is illegal on its own, it is creating an instance of your abstract class. joe = HourlyEmployee(); is a bad idea even if the classes were both complete as it would slice. joe is an object, not a reference. If HourlyEmployee … Read more