Can a destructor be pure virtual?
Explanation
Yes, it can, but always with the definition:
class A
{
...
public:
    virtual ~A() = 0; 
}
A::~A() {...}

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes