Which of the following functions should be the destructor function for user…
2022
Which of the following functions should be the destructor function for user defined class Person in C++?
Answer: D. ~Person()
- A.
Person(string s)
- B.
Person()
- C.
~Person(string s)
- D.
~Person()
Attempted by 570 students.
Show answer & explanation
Correct answer: D
Loading lesson…