4 ms·
> All of which is a workaround for the fact that there is no explicit way to declare a c++ class to be abstract-only. Sure you can. Just put the word "Abstrac
by thought_alarm 16y ago
> All of which is a workaround for the fact that there is no explicit way to declare a c++ class to be abstract-only.
Sure you can. Just put the word "Abstract" in the class name, and then every programmer who reads that class name will know that it's abstract. What more does one need?
That approach is much clearer than resorting to tricks like a pure virtual destructor. At the end of the day it's all about communicating design.