T
tshad
I want to set up a class that takes 2 arguments in its parameters list.
But I also want to allow a second constructor that takes one argument that
will call the 2nd Constructor and pass the variable and a blank (for the
parameter that wasn't passed.
I know this isn't correct but how would I change this to do what I want?
class temp
{
public temp(arg1)
{
temp(arg1,"");
}
public temp(arg1, arg2)
{
code here...
if (arg2 == "")
{
}
}
}
Thanks,
Tom
But I also want to allow a second constructor that takes one argument that
will call the 2nd Constructor and pass the variable and a blank (for the
parameter that wasn't passed.
I know this isn't correct but how would I change this to do what I want?
class temp
{
public temp(arg1)
{
temp(arg1,"");
}
public temp(arg1, arg2)
{
code here...
if (arg2 == "")
{
}
}
}
Thanks,
Tom