Question OOP-POLY-0080
HardWhat is a pure virtual destructor in C++ and why might it be used?
- A.
A destructor with no body
- B.
A destructor that can't be called
- 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
Polymorphism question
What is a pure virtual destructor in C++ and why might it be used?
A destructor with no body
A destructor that can't be called
Sign up free to see the answer and a step-by-step explanation.
A static destructor
A destructor declared = 0 (but still defined) to make a class abstract when it has no other pure virtual functions