subject

Given the following class definition: class employee
{
public:
employee();
employee(string, int, double);
employee(int, double);
employee(string);

void setData(string, int, double);
void print() const;
void updatePay(double);
int getNumOfServiceYears() const;
double getPay() const;

private:
string name;
int numOfServiceYears;
double pay;
};

Create a class parttime derived from the above class that includes private members payRate and hoursWorked of type double along with a constructor and the definition of a print function that prints out all information from the base and derived class. Provide a test program that would demonstrate the working parttime class.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 20:00
Amanda needs to create an informative print brochure for her local library’s fundraiser dinner. what critical detail must she have before she starts designing the brochure?
Answers: 1
question
Computers and Technology, 22.06.2019 21:00
Ulia is planning to attend the same private four-year college her parents attended. she wants to save at least $18,000 in four years to contribute to her college education. which monthly deposit amounts can julia use to achieve her goal? check all that apply.
Answers: 2
question
Computers and Technology, 23.06.2019 18:30
How often does colleges update the cost of attendance on their website? . a)every two years b) every four years c) every year d) every semester
Answers: 1
question
Computers and Technology, 24.06.2019 00:30
Afiling system in which an intermediary source of reference, such as a file card, must be consulted to locate specific files is called a(n) system. a. shelf filing b. direct filing c. indirect filing d. shingling
Answers: 1
You know the right answer?
Given the following class definition: class employee
{
public:
employee();
...
Questions
question
Mathematics, 03.12.2021 05:50
question
Mathematics, 03.12.2021 05:50
Questions on the website: 13722361