There is a class with a non-default constructor.
#include <iostream>
class Foo {
public:
Foo(int a) { std::cout << "Constructor" << std::endl; };
}
So the default constructor couldn't be invoked:
Foo obj; // compilation error
The non-default constructor can be inkoved:
Foo obj(1);
Question:
What happens in the following line that compiles?
Foo obj();