Vidyalelo
C++ Programming · Q1

Constructors and Destructors in C++

Programming · C++ Programming · question 1

Q1

What is a constructor in C++?

A.
A function used to create objects
B.
A special member function that initializes objects
Answer
C.
A function used to access class members
D.
None of the above

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board