subject

consider the definition of the following class: (1,2,3,5,7)class emplyee{public:emplyee ();emplyee (string, int, double);emplyee(int, double);employee (string);void setData (string, int, double);void print () const;void updateSalary (double x);int getNumOfServiceYears() const;double getSalary () const;private:string name;int numOfServiceYears;double salary;};A. Give the line number containing the constructor that is executed in each of the following declararions:i. employee tempEmployee;ii. emplyee newEmployee (" Harry Miller", 0,2500);iii. employee oldEployee ("Bill Dunbar", 15, 55000);B. Write the definition of the constructor in Line 4 so that the instance variables are initialized to " ", 0, and 0.0 ,respectively. C. Write the definition of the constructor in LIne 5 so that the instance variables are initialized according to the parameters. D. Write the definition of the constructor in line 6 so that the insurance variable name is initialized to empty string and the remaining instance variables are initialized according to the parmeters.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 13:30
In the rgb model, which color is formed by combining the constituent colors? a) black b) brown c) yellow d) white e) blue
Answers: 1
question
Computers and Technology, 24.06.2019 18:20
7. design a circuit with three inputs (x, y, and z) representing the bits in a binary number, and three outputs (a, b, and c) also representing bits in a binary number. when the input is 1, 2, or 3, the binary output should be one lesser than the input. when the input is 4, 5, or 6, the binary output should be one greater than the input. when the input is 0, the output is 0, and when the input is 7, the output is 7. show your truth table, all computations for simplification, and the final circuit.
Answers: 2
question
Computers and Technology, 24.06.2019 22:00
True or false technology is often discovered by accident
Answers: 2
question
Computers and Technology, 25.06.2019 04:30
What should be used when performing vehicle maneuvers?
Answers: 1
You know the right answer?
consider the definition of the following class: (1,2,3,5,7)class emplyee{public:emplyee ();emplyee (...
Questions
question
Mathematics, 22.04.2020 00:18
question
Mathematics, 22.04.2020 00:18