[c++] How do you handle a "cannot instantiate abstract class" error in C++?