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?
- Copy Constructor
- Friend Constructor
- Default Constructor
- Parameterized Constructor
Answer: Option B. Friend Constructor
Table of content
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: