I'm getting a few errors when compiling. Here is one.
1 2
string.cpp:16:1: error: prototype for ‘String::String()’ does not match any in class ‘String’
String::String() // default constructor
and here is the code from my .cpp
1 2 3
// using a initializer list and giving null pointer to a char array
String::String() // default constructor
: size{0}, chars{strcpy(newchar[1], "")} {}