Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Focus On Geodatabases In ArcGIS Pro

Authors: David W. Allen

1st Edition

1589484452, 978-1589484450

More Books

Students also viewed these Databases questions

Question

recognise typical interviewer errors and explain how to avoid them

Answered: 1 week ago

Question

identify and evaluate a range of recruitment and selection methods

Answered: 1 week ago

Question

understand the role of competencies and a competency framework

Answered: 1 week ago