Hi!

I have another overloading operator problem.

I want to use my String class with type char.

Example:
String temp = "";
char z = 'a';
temp += z;

.hpp file
Code:
String &operator+=(const char &character);
.cpp file
Code:
String &String::operator+=(const char &character) {
String newString = *this + character;
setString(newString);
return *this;
}
How can I make it work?