Question: Need simple answers for h-m 3. Consider the following declaration class Employee publie /tine1 //Line 2 //Line3 //Line 4 Employee) Employee (atring name, int numYears,

Need simple answers for h-m  Need simple answers for h-m 3. Consider the following declaration class
Employee publie /tine1 //Line 2 //Line3 //Line 4 Employee) Employee (atring name,

3. Consider the following declaration class Employee publie /tine1 //Line 2 //Line3 //Line 4 Employee) Employee (atring name, int numYears, double salary)Line S Employee (int numYears, double salary) Employee (string nane) //Line 6 //Line 7 void Set (string name, int nunYears, double salary):Line 8 void Print const void UpdateSalary (double salary): int GetNumotServiceYears const: double GetSalary) const /Line 9 /tine 10 //Line 11 //Line 12 /TLine 13 //Line 14 //Line 15 //Line 16 //Line 17 string _name m numofserviceYears double salary Employee nevEmployee ("Barry iller.0, 25000) Employee oldEmployee ("Bi11 Dunbar15, 55000) a. How many members does the class Employee have b. How many peivate members does class Employee have c. How many constractors does class Employee have d. How many constant functions does class Employee have e. Give line number of constructor used to initialize the object tempEmployee t Give line namber of constructor used to initialize the oject mewEmployee g. Give line number of constructor is used to initialize the object oldEmployee For the following you ncod to give the full implementation of the constructor or mcthod (including header with formal parameter list) h. Implement constructor on Line 4, so that name is set to service years to 0, and salary to 00 iImplement constructor on Line S so member variables set acconding to parameters j. Implement constructor on Line 6 so name ts set toco y ng, nd remaining member vanables set k. Implement method on Line 8 so member variables are s accor to parameters

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!