Which of the Following is Not a Type of Constructor?

By Anjnee Bhatnagar|Updated : July 4th, 2022

Which of the following is not a type of constructor?

  1. Copy Constructor
  2. Friend Constructor
  3. Default Constructor
  4. Parameterized Constructor

Answer: Option B. Friend Constructor

Friend Constructor is not a type of constructor in C++.

Solution

The answer to the question” Which of the following is not a type of constructor?” is option B. That is in C++ we do not have any constructor as a friend constructor. Constructors are mainly of three types:

  • Default Constructors
  • Copy Constructors
  • Parameterized Constructors

So clearly options A, C, and D cannot be the right choice for the given question.

☛ Related Questions:

Comments

write a comment

Follow us for latest updates