πŸ“Š C++
Q. Which of the following statements are not true about destructor?

1. It is invoked when object goes out of the scope
2. Like constructor, it can also have parameters
3. It can be virtual
4. It can be declared in private section
5. It bears same name as that of the class and precedes Lambda sign.
  • (A) Only 2, 4, 5
  • (B) Only 2, 3, 5
  • (C) Only 3, 4, 5
  • (D) Only 2, 3, 4
πŸ’¬ Discuss
βœ… Correct Answer: (A) Only 2, 4, 5

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
264
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
80%
Success Rate