Agree with Dappur's answer, you did not define a default constructor in the class. Your new text[2] statement was actually changed by the compiler to new text()[2], and it reported an error when it couldn't find it. I believe the compiler error says the same thing.
Try adding a parameterless constructor
text(){}
Agree with Dappur's answer, you did not define a default constructor in the class. Your new text[2] statement was actually changed by the compiler to new text()[2], and it reported an error when it couldn't find it. I believe the compiler error says the same thing.