I'm experimenting with classes(for the first time) where basically you create a box with a name, you can move it and close/open it, etc., very simple. However, I get an error when compiling, it says that the constructor is not allowed a return type. What exactly is the error?
What is the return type that it's talking about?Code:BOX::BOX() { xpos=0; ypos=0; open=false; }