Hay*_*den -4 c++ recursion constructor class function-calls
这是假设,但我有一个带有两个重载构造函数的类 - 其中没有一个是默认的构造函数.如果我从另一个调用一个构造函数,它会递归吗?例:
class Example
{
Example(const int integer)
{
//Constructor Code Here
}
Example(argument)
{
Example object(68);
//Rest of constructor code
}
};
Run Code Online (Sandbox Code Playgroud)