mardi 20 avril 2021

C++: Can the destructor be the only virtual function in a class?

I read that the destructor should be declared virtual only if there is virtual function in a class. Is this a requirement or is it possible to do otherwise?

Aucun commentaire:

Enregistrer un commentaire