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 00:00
Which tool could be used to display only rows containing presidents who served two terms
Answers: 3
question
Computers and Technology, 24.06.2019 14:00
Which computer tools allow you to communicate with coworkers, family,and friends
Answers: 1
question
Computers and Technology, 24.06.2019 16:00
Which type of cloud computing offers easily accessible software and applications on the machines
Answers: 1
question
Computers and Technology, 25.06.2019 04:30
What is the purpose of network permissions? a)to control access to network resources b)to convert to wireless networking c)to enable the installation of nics d)to reduce operating costs
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, 25.06.2021 18:40
question
English, 25.06.2021 18:40
Questions on the website: 13722362