1.

Which of the following is not a type of Constructor?(a) Friend constructor(b) Copy constructor(c) Default constructor(d) Parameterized constructorThis question was posed to me during an online interview.The origin of the question is OOPs Concept topic in portion Basics Concepts of C++ of C++

Answer» CORRECT ANSWER is (a) FRIEND constructor

The explanation is: Friend function is not a constructor WHEREAS others are a type of constructor used for object initialization.


Discussion

No Comment Found

Related InterviewSolutions