Which of the statements is true about destructor-00472

Online Quiz This subjective question is related to the book/course vu cs302 Digital Logic Design. It can also be found in vu cs302 Mid Term Solved Past Paper No. 2.

Question 1: Which of the statements is true about destructor?
Answer:
  1. Destructors are used to initialize data members
  2. Destructors return types are always void
  3. Destructors are called in reverse order of constructor called in a class hierarchy
  4. Destructors are used to display the data members of their respective class

Choose an organization

Theme Customizer

Gaussian Texture



Gradient Background