#include #include "Employee.h" #include "SalariedEmployee.h" #include "HourlyEmployee.h" #include "CommissionEmployee.h" #include "BasePlusCommissionEmployee.h" using namespace std; int main() { Employee **A = new Employee *[3]; A[0] = new SalariedEmployee("nguyen", "hai", "123", 100000); A[1] = new HourlyEmployee("bao", "huy", "456", 50000, 10); A[2] = new CommissionEmployee("kien", "trung", "789", 500000, 1.5); A[3] = new BasePlusCommissionEmployee("tho", "viet", "101", 500000); for (int i = 0; i <= 3 ; i++) { A[i]->print(); cout << A[i]->getFirstName() << " "; cout << A[i]->getLastName() << endl; cout << A[i]->getSocialSecurrityNumber() << endl; cout << A[i]->earnings() << endl; cout << "---------------------------" << endl; } system("pause"); return 0; }