brownie124
Programmer
I receive the error when I compile the code below. What is wrong?
"Only constructors can invoke constructors"
Thanks,
- Michael
"Only constructors can invoke constructors"
Code:
class MyGroupBox
{
public void MyGroupBox(int x, int y, int intWidth, int intHeight)
{
this(x, y, intWidth, intHeight, "");
}
public void MyGroupBox(int x, int y, int intWidth, int intHeight, String strCaption)
{
// do some stuff here
}
}
Thanks,
- Michael