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 04:30
What is the process in which the software development team compiles information to determine the final product
Answers: 1
question
Computers and Technology, 24.06.2019 04:30
Which of the following terms refers to a collection of different types of software that share the goal of infiltrating a computer and making it do something? a- malware b- virus c- spyware d- trojan horse
Answers: 2
question
Computers and Technology, 24.06.2019 11:00
Which of the statements below describe the guidelines for the use of text in presentation programs? a. do not use numbered lists. b. fonts should be appropriate for your audience. c. limit the number of fonts you use to three or four. d. only use bulleted lists for sales promotions. e. select font sizes that are appropriate for your delivery method. f. use font colors that work well with your background. select all that apply
Answers: 1
question
Computers and Technology, 25.06.2019 09:20
Part d: float check string has a method s.isdigit() that returns true if string s contains only digits and false otherwise, i.e. s is a string that represents an integer. write a function named float_check that takes one parameter that is a string and returns true if the string represents a float and false otherwise. for the purpose of this function we define a float to be a string of digits that has at most one decimal point. note that under this definition an integer argument will return true. remember “edge cases” such as “45.” or “.45”; both should return true. for example: float_check('1234') returns true float_check('123.45') returns true float_check('123.45.67') returns false float_check('34e46') returns false float_check('.45') returns true float_check('45.') returns true float_check('45..') returns false
Answers: 2
You know the right answer?
consider the definition of the following class: (1,2,3,5,7)class emplyee{public:emplyee ();emplyee (...
Questions
question
Chemistry, 26.10.2020 18:40
question
Mathematics, 26.10.2020 18:40
question
Mathematics, 26.10.2020 18:40
question
Advanced Placement (AP), 26.10.2020 18:50
Questions on the website: 13722362