Question:medium

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

The Correct Option is C

Solution and Explanation

Step 1: Recall what a constructor actually does.
A constructor is a special member function that runs automatically the moment an object is created, and its entire job is to initialize that particular object's data members. Because of this, every constructor in C++ is tied to an object being built.
Step 2: Check each option against that idea.
A copy constructor builds a new object from an existing one, a default constructor takes no arguments, and a parameterized constructor takes arguments to set initial values, all three genuinely construct an object instance.
Step 3: Test the odd one out.
The word static in C++ means something belongs to the class as a whole rather than to any single object, so a static constructor is a contradiction in terms: constructors exist only to build individual objects, and C++, unlike C#, has no such concept at all.
\[ \boxed{\text{Static Constructor}} \]
Was this answer helpful?
0