A
Alexander Widera
hi,
how can I call a constructor in a constructor?
here is my sample
public class Test
{
public int _Size = 0;
public string _Name;
Test(string name)
{
// call of constructor Test(name, 100);
}
Test(string name, int size)
{
_Name = name;
_Size = size;
// do something....
}
}
Test tvar = new Test("testman");
// tvar._Size should now be 100...
Could you help me please?
Thanks
Alex
how can I call a constructor in a constructor?
here is my sample
public class Test
{
public int _Size = 0;
public string _Name;
Test(string name)
{
// call of constructor Test(name, 100);
}
Test(string name, int size)
{
_Name = name;
_Size = size;
// do something....
}
}
Test tvar = new Test("testman");
// tvar._Size should now be 100...
Could you help me please?
Thanks
Alex