A
Andy
Hi,
is it in C++ possible to call a constructor from another constructor?
In Java you can do the following:
public class MyClass
{
public MyClass()
{
this(10);
}
public MyClass(int someNumber)
{
...
}
...
}
How can I do something equal in C++?
Regards,
Andy
is it in C++ possible to call a constructor from another constructor?
In Java you can do the following:
public class MyClass
{
public MyClass()
{
this(10);
}
public MyClass(int someNumber)
{
...
}
...
}
How can I do something equal in C++?
Regards,
Andy