Hello C-mates,
recently i rushed into the syntax of virtual funktion declaration and, unbelievabel, i declared
some pure virtual funktions in a class. Besides, i declared some variables in that class too, unfortunately a list of objects of the same class... Of course the compiler complained and because of that mistake i now got a mess of unsable code.
Though all could have worked, if the class could be derived and completed, the compiler does not accept my code.
So is there a way to declare a "virtual" variable (in this case a list of virtual class objects) in a class? - I fear not, but if there are any ideas, i'm grateful for every help,
Ben
Sorry, but i forgot that it could be helpful to give an Example:
Code:class isamess { virtual int tutnix() = 0; list<isamess> messies; . . . }