Constructor with 2 arguments


Write a class implementation for a class_my class that contains the data member ID of type integer and data member MSG of type string (to hold a simple description of any created object (local,global,static,automatic))then follow what come serially 
1-create a global void function named create_fun to create 2 objects:obj1 local automatic to create_fun,and obj2 static to create_fun.
2-constructor with 2 arguments to initialize object data member ID and MSG with any given value.
3-a destructor to print the ID and MSG of any terminated object.
4-a global object named obj3.
5-a local object to the main function named obj4.
6-a static local object to the main function named obj5.
7-call function create_fun from the main function.
8-create a local object named obj6 to the main function. 
9-call function create_fun from the main function.
10-create a local object named obj7 to the main function.

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: Constructor with 2 arguments
Reference No:- TGS072261

Expected delivery within 24 Hours