class MyString
{
private:
char *str; // Pointer to the char array that holds the string
int strLength; // Variable to store the length of the string
public:
// Default constructor to initialize the string to empty string
MyString();
// Overloaded constructor
MyString(constchar *);
// Copy constructor
MyString(const MyString&);
// Overloaded assignment operator
const MyString& operator = (const MyString&);
// Display the string on screen
void display ();
// Returns the length (# of characters excluding the null terminator) of the string
int getLength ();
// Destructor
~MyString();
// Overload the relational operators to allow comparison of two MyString objects
booloperator == (const MyString&) const;
booloperator != (const MyString&) const;
booloperator <= (const MyString&) const;
booloperator < (const MyString&) const;
booloperator >= (const MyString&) const;
booloperator > (const MyString&) const;
// Concatenating two MyString objects. Returns the new MyString
MyString operator + (const MyString&) const;
// Concatenates another MyString with the current MyString
const MyString& operator += (const MyString&);
};
can anyone please tell me how can I define overloaded constructor at line 12.