Vidyalelo
C++ Programming · Q42

Constructors and Destructors in C++

Programming · C++ Programming · question 42

Q42

How constructors are different from other member functions of the class?

A.
Constructor has the same name as the class itself
B.
Constructors do not return anything
C.
Constructors are automatically called when an object is created
D.
All of the mentioned
Answer

Answer: Option D

Solution

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