F
francois
If I have a class name Foo
Is it possible to call an signature of the constructor inside one
constructor?
Like is it possible to do the following?
public class Foo
{
public Foo()
{
int defaultValue = 0;
Foo(defaultValue);
}
public Foo(int id)
{
// do stuff
}
}
Then if I can call a constructor from an other constructor, how can I
achieve it, what is the syntax?
Best regards
Francois
Is it possible to call an signature of the constructor inside one
constructor?
Like is it possible to do the following?
public class Foo
{
public Foo()
{
int defaultValue = 0;
Foo(defaultValue);
}
public Foo(int id)
{
// do stuff
}
}
Then if I can call a constructor from an other constructor, how can I
achieve it, what is the syntax?
Best regards
Francois