Question: please add commnet thank you Write a CH+ class, MyClass, that has tree member variable of type int, long, and float, respectively and one of
Write a CH+ class, MyClass, that has tree member variable of type int, long, and float, respectively and one of them should use dynamically memory allocation as learned in the class. a. Your class must include three different type of constructor functions learned in the class. b. Your class should include functions for setting the value of each type, getting the value of each type, and computing and returning the sum of each possible combination of types. c. Implement overloaded assignment operator as one of class member functions. d. Your class must include destructor function which takes care of dynamically allocated members reside in heap space. e. Test every feature (copy constructor, overloaded assignment operator, etc.) to verify correctness of your code. Use your favorite C++ compiler and run with sample inputs to generate proper output. Get a screenshot of your output and attach it to your source code to prove your code was compiled and ran successfully. Your source code should include proper comments
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
