D
DBC User
I have 2 constructors in my class, first one with no paramter and the
second one is with a paramter. I want the later constructor to use the
first constructor and do some more with the parameter. How can I do
this?
eg:
public const()
{
//do base work
}
public const(string data)
{
//do base work --- Here is where I want to reuse the default
constructor
path = data;
}
It is a simple one but somehow I am not getting it correct.
Thanks.
second one is with a paramter. I want the later constructor to use the
first constructor and do some more with the parameter. How can I do
this?
eg:
public const()
{
//do base work
}
public const(string data)
{
//do base work --- Here is where I want to reuse the default
constructor
path = data;
}
It is a simple one but somehow I am not getting it correct.
Thanks.