Question:

Which of the following is NOT a type of constructor in C++?

Show Hint

In C++, static members belong to the class itself, not to any individual object. They are created and initialized only once, when the program starts, so they don't need a per-object constructor.
Updated On: Jul 2, 2026
  • Copy Constructor
  • Default Constructor
  • Static Constructor
  • Parameterized Constructor
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is C

Solution and Explanation

A constructor is a special member function of a class that is automatically called when an object of that class is created. Its purpose is to initialize the object's data members.
The main types of constructors in C++ are:
(B) Default Constructor: A constructor that can be called with no arguments. It's either a constructor with no parameters, or one where all parameters have default values.
(D) Parameterized Constructor: A constructor that accepts one or more arguments to initialize the object.
(A) Copy Constructor: A constructor that creates a new object as a copy of an existing object. It takes a reference to an object of the same class as its argument.
(C) Static Constructor: The concept of a static constructor does not exist in C++. Static data members of a class are initialized outside the class definition, and there is no special constructor for them. Languages like C# have static constructors, but C++ does not.
Therefore, Static Constructor is not a type of constructor in C++.
Was this answer helpful?
0
0