... 'CommissionEmployee' BasePlusCommissionEmployee.cpp:34:42: 'grossSales' is a private member of 'CommissionEmployee' BasePlusCommissionEmployee.cpp:42:55: 'firstName' is a private member of 'CommissionEmployee' BasePlusCommissionEmployee.cpp:43:10: 'lastName' is a private member of 'CommissionEmployee' BasePlusCommissionEmployee.cpp:43:54: 'socialSecurityNumber' is a private member of 'CommissionEmployee' BasePlusCommissionEmployee.cpp:44:31: 'grossSales' is a private member of 'CommissionEmployee' BasePlusCommissionEmployee.cpp:45:35: 'commissionRate' is a private member of 'CommissionEmployee' 

constructor. C++ requires that a derived-class constructor call its base-class constructor to initialize the base-class data members that are inherited into ...

Get C++ How to Program, 10/e now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.