Consider the following class:
class hourlyEmp: public employee {
public:
hourlyEmp();
hourlyEmp(const string& newName, const string& newSsn,
double newPayRate, double newHours);
double getHours() const;
void setHours(double newHours);
void giveRaise(double amount);
void printCheck() const;
private:
double hours;
double payRate;
};
How could you create an object of this class (Select all that apply)?
A. |
hourlyEmp arnold(); |
B. |
employee arnold("Arnold Jones","23456664",13,20); |
C. |
hourlyEmp arnold("Arnold Jones","23456664",13,20); |
D. |
employee::hourlyEmp arnold("Arnold Jones"); |