hamburger

Which of the Following is Not a Type of Constructor?

By BYJU'S Exam Prep

Updated on: September 25th, 2023

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:

Our Apps Playstore
POPULAR EXAMS
SSC and Bank
Other Exams
GradeStack Learning Pvt. Ltd.Windsor IT Park, Tower - A, 2nd Floor, Sector 125, Noida, Uttar Pradesh 201303 help@byjusexamprep.com
Home Practice Test Series Premium