Question: C++ Define and implement the overloaded constructors that support the following test function for a StudentEmployee class. The data members for the StudentEmployee class are:

C++

Define and implement the overloaded constructors that support the following test function for a StudentEmployee class. The data members for the StudentEmployee class are: age - integer number name - String DSI - String salary - floating point number int main() { //s1 will take all default value StudentEmployee s1(); //s2 will take all supplied values StudentEmployee s2 (50, "Jackie Chan", "D87654321", 10000000.99); //s3 will take supplied age value, name, DSI and salary will take default values StudentEmployee s3 (25); //s4 will take supplied age and name value, DSI and salary will take default values StudentEmployee s4 (35, "Jenny"); //s5 will take supplied age, name and DSI value, salary will take default value StudentEmployee s5 (45, "Jack", "D11223344"); //s6 will take supplied age, name and salary value, DSI will take default value StudentEmployee s6 (60, "James Bond", 65000.0); //s7 will take the same value of s2 StudentEmployee s7=s2; //the rest of the code }

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!