Default constructor
Necessary in order to allow
String s;
or
String s[10];
We will actually allocate a null string:
String::String(): data(new char[1])
{
data[0] = `\0';
}
Previous slide
Next slide
Back to first slide
View graphic version