Implement a default constructor for the following class:
class Employee
{
private:
int idNum;
double hourlyRate;
public:
Employee();
void setIdNum(const int);
void setHourlyRate(const double);
int getIdNum();
double getHourlyRate();
};
Correct Answer:
Verified
View Answer
Unlock this answer now
Get Access to more Verified Answers free of charge
Q26: The _ directive means that you have
Q27: The C++ directive _ allows you to
Q28: _ cohesion occurs when all of the
Q29: Using an object within another object is
Q30: _ are simple routines that do nothing
Q32: What are the four special member functions
Q33: Why is it a good idea to
Q34: What does the default destructor of a
Q35: _ is a measure of the strength
Q36: The following code shows an example of
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents