Which of the statements is true about destructor-00472
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:
- Destructors are used to initialize data members
- Destructors return types are always void
- Destructors are called in reverse order of constructor called in a class hierarchy
- Destructors are used to display the data members of their respective class