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, 21.06.2019 22:30
Type the correct answer in the box. spell all words correctly.what kind of graph or chart does this image represent? the given image represents a (blank).
Answers: 2
question
Computers and Technology, 22.06.2019 15:00
I'm taking a class on how to make a movie, and it offers some apps that would be in the process. the thing is, i don't have any of those ha. if you have any tips on some apps i could use, that would be awesome. i don't have an iphone, so don't suggest any apps like imovie. i know that this is a weird question, but it would be super for me. : )
Answers: 2
question
Computers and Technology, 22.06.2019 15:30
In a compound condition, both conditions on either side of the logical operator and must be true for the overall condition to be true. a: true b: false
Answers: 1
question
Computers and Technology, 23.06.2019 15:30
Brian wants to conduct an online search with a certain phrase. he intends to use the words books that belong to the 1800s in his search. how should he use the word that in his search?
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
Geography, 22.06.2019 17:30
question
Geography, 22.06.2019 17:30
Questions on the website: 13722360