Multiple choice

Which of the following functions is used in C++ for the automatic initialization of class objects?

  1. Destructor

  2. Virtual function

  3. Constructor

  4. None of these

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

This function automatically initializes the class objects beacuse they are automatically being called once the object of any class is created.