Which of the following is not a type of Constructor in C++ ?
The correct answer is D) Friend constructor.
In C++, constructors are special member functions of a class that are automatically called when an object of the class is created. Constructors are responsible for initializing the object's data members and setting up its initial state. There are three types of constructors commonly used in C++ Copy constructor, Default constructor and Parameterized constructor.
There is no concept of a "friend constructor" in C++. Friend functions are non-member functions that are granted access to the private and protected members of a class. However, constructors cannot be declared as friends. Constructors are always member functions of a class and cannot be declared as friends to another class.