Create an abstract class Employee with: Protected: string…

Create an abstract class Employee with: Protected: string name Constructor taking name Pure virtual function double pay() const = 0; Virtual function void display() const that shows the name Create two derived classes: HourlyEmployee with: hoursWorked, hourlyRate pay() = hoursWorked * hourlyRate SalariedEmployee with: salary pay() = salary In main(): Dynamically allocate one HourlyEmployee and one SalariedEmployee Store them in an Employee* array Loop through, calling display() and pay() Delete the objects at the end