Constructor
-
Default Constructor
-
Copy Constructor
- Compiler creates a copy constructor if the user doesn't write its own copy constructor.
- Compiler doesn't create a default constructor if the user writes any constructor even if it is copy constructor.
References
https://www.geeksforgeeks.org/does-compiler-always-create-a-copy-constructor