For a type, the type name itself is the constructor of the type For example, there is a class
class A {
...
};
Then A() is the constructor of type A. Using A() you can get a variable of type A. int is a built-in type, so int() calls the constructor of the int type and returns an int variable.
Keywords: constructor
For a type, the type name itself is the constructor of the type
For example, there is a class
Then A() is the constructor of type A. Using A() you can get a variable of type A.
int is a built-in type, so int() calls the constructor of the int type and returns an int variable.