Computer Science homework help

Computer Science homework help. Here is header filemystring.h/* MyString class */#ifndef MyString_H#define MyString_H#include using namespace std;class MyString {private:   char* str;   int len;public:   MyString();   MyString(const char* s);   MyString(MyString& s);   ~MyString();   friend ostream& operator <<(ostream& os, MyString& s); // Prints string   MyString& operator=(MyString& s); //Copy assignment   MyString& operator+(MyString& s); // Creates a new string by concantenating input string};#endifHere is main file, the test filetestMyString.cpp/* Test for MyString class */#include #include “mystring.h”using namespace std;int main(){char greeting[] = “Hello World!”;MyString str1(greeting); // Tests constructorcout << str1 << endl; // Tests << operator. Should print Hello World!char bye[] = "Goodbye World!";MyString str2(bye);cout << str2 << endl; // Should print Goodbye World!MyString str3{str2}; // Tests copy constructorcout << str3 << endl; // Should print Hello World!str3 = str1; // Tests copy assignment operatorcout << str3 << endl; // Should print Goodbye World!str3 = str1 + str2; // Tests + operatorcout << str3 << endl; // Should print Hello World!Goodbye World!return 0;}

Computer Science homework help