Question: Please ANSWER USING C++ AND ALSO PROVIDE OUTPUT FAST THANKS Problem 2: a) Write the member function definitions of class Simple below. You can place

Please ANSWER USING C++ AND ALSO PROVIDE OUTPUT FAST THANKS

Please ANSWER USING C++ AND ALSO PROVIDE OUTPUT FAST THANKS Problem 2:

Problem 2: a) Write the member function definitions of class Simple below. You can place the prototypes and definitions of member functions in the same .h file. Do not change the private and public sections. (max 30 points) #include #include // Needed for strlen and strepy using namespace std; class Simple { private: char *data; public: // default constructor without parameters // constructor initializer // copy constructor // destructor // char *getdata( ){ ....} keep the return type and add definition // setdata // print b. In main( ) create 3 objects of class Simple similar to the example below. Implement all member functions of class Simple. Display the output, which should contain not less than 15 lines. Simple A("Mickey Mouse"); (max 10 points)

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 Programming Questions!