Which of the statements are CORRECT about destructors?
(A) Destructors are invoked automatically when objects go out of scope or are explicitly deleted.
(B) Destructors can have parameters in some programming languages.
(C) Destructors do not have return types and therefore cannot return values.
(D) A class can have multiple destructors.
Choose the correct answer from the options given below:
1
(A), (C), and (B) Only
2
(A), (B), and (D) Only
3
(A), (C), and (D) Only
4
(A), and (C) Only