Distinguish between a constructor and a destructor and specify when they are executed in a computer code.

      

Distinguish between a constructor and a destructor and specify when they are executed in a computer code.

  

Answers


Davis
A constructor is the function that is called when an object is created. A destructor is the function that is called when an object is destroyed
Githiari answered the question on November 17, 2017 at 05:32


Next: Explain what an anonymous union is and how it differs from a normal union in computer programming
Previous: What is an inline function.Give an advantage and a disadvantage of using an inline function when coding a computer program

View More Computer Studies Questions and Answers | Return to Questions Index


Exams With Marking Schemes

Related Questions