Question OOP-CTOR-0054
MediumCan a destructor take arguments or be overloaded in C++?
- A.
No; each class has exactly one destructor with no parameters
- B.
Only in derived classes
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Constructors and Destructors question
Can a destructor take arguments or be overloaded in C++?
No; each class has exactly one destructor with no parameters
Only in derived classes
Sign up free to see the answer and a step-by-step explanation.
Yes, any number
Only one extra argument