When an object is created an initialization needs to be done which is automatically done by the ____ function?

55. When an object is created an initialization needs to be done which is automatically done by the ____ function?

  1. Constructor
  2. Destructor
  3. Friend
  4. Member

Answer: A) Constructor

Explanation:

When an object is created an initialization needs to be done which is automatically done by the constructor function, it constructs the value of the member class.

Comments and Discussions!

Load comments ↻






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