M
Mark
public class myClass
{
public myClass(string param1)
{
//HOW DO I CALL myClass() below??
myClass(); // THIS DOES NOT WORK
}
public myClass()
{
//Do something here that ALL constructors should do. Hence, I want
to call it from
}
}
NOTE: I could just make a different method that the constructors call, but
I'd like to avoid this. Is there a way to do what I'm trying to do?
It also doesn't make sense to do "new myClass()" in the first constructor
because that just creates an entirely new instance of the class.
Thanks in advance!
Mark
{
public myClass(string param1)
{
//HOW DO I CALL myClass() below??
myClass(); // THIS DOES NOT WORK
}
public myClass()
{
//Do something here that ALL constructors should do. Hence, I want
to call it from
}
}
NOTE: I could just make a different method that the constructors call, but
I'd like to avoid this. Is there a way to do what I'm trying to do?
It also doesn't make sense to do "new myClass()" in the first constructor
because that just creates an entirely new instance of the class.
Thanks in advance!
Mark