Question: Create a class named Employee that has three member variables: name A string that stores the employees name numDependents An integer that tracks how many

Create a class named Employee that has three member variables:

name A string that stores the employees name

numDependents An integer that tracks how many dependents the employee has

classDependents an array of strings with the names of the employees dependents

Write corresponding constructors, as well as mutator and accessor functions for the class which includes the following:

A function that inputs all appropriate user values, including the class names.

A function that outputs the employee name and a list of his dependents

A destructor that releases all memory that has been allocated

Write a main function which tests all your functions.

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!