Multiple choice

Which of the following functions is created by the compiler when no constructor is created or supplied by the user?

  1. Friend function

  2. Inline function

  3. Default constructor

  4. this pointer

  5. Static member function

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

A default constructor is created to create and initialise objects of the same class.