Write another main function to answer the following parts


For this problem you need the Employee class again. Write another main function to answer the following parts. Only submit the main function for this problem. Your code will be tested

Create an Employee object using the constructor with parameter.

Declare an Employee pointer and make it point to the Employee object created in part (i).

Use the pointer to call the print() method of the object.

Dynamically create an Employee object and make the pointer point to this newly created dynamic object.

Use the pointer to call the print() method of this new object.

Delete the pointer and set it to point to NULL. Explain what does this step do?

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Write another main function to answer the following parts
Reference No:- TGS02898503

Expected delivery within 24 Hours