So, here's my problem: I have a superclass:
Class SuperClass {
virtual someMethod() = 0;
}
... and then I have multiple classes that inherit SuperClass. Now, if I want to put objects made from the subclasses to a single vector<SuperClass>, how could I get the abstract function to work? I mean, it does, if I leave the "= 0" part out and make an implementation of the function for the SuperClass, but what I need is an abstract SuperClass. This would work fine otherwise, but I want to store all types of subclasses in one vector. Impossible or not? :P