Consider the following classhow could you create an object


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");

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Consider the following classhow could you create an object
Reference No:- TGS01205279

Expected delivery within 24 Hours