If we did not create any constructor in the class, then which of the following constructor is automatically added to the class?

189. If we did not create any constructor in the class, then which of the following constructor is automatically added to the class?

  1. Copy constructor
  2. Default constructor
  3. Parameterized constructor
  4. None of the above

Answer: B) Default constructor

Explanation:

If we did not create any constructor in the class, then the default constructor is automatically added to the class.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.