I am trying to input into a list, objects from an abstract class top_class...
when I call the list constructor
I get an error
"cannot create instance of abstract class" I understand that this is due to the fact that the compiler cannot resolve for the methods (which are only defined in the sub-classes) of this abstract class...
My problem is that I don't really know how to fix this..
Do I need to send a pointer to the object in order to allow polymorphism?
I don't know how since
produces an error... can't find a match for...(above line constructor)
How can I fix this (please don't just say implement this in the sortable list!...I need to know how!), any code would be very helpful.... also if you need the implementation of sortablelist just let me know.
here's what my class looks like
virtual void M1(C&)=0; //abstract method
I need to place these items in the list and also be able to use the getdepth() method from an iterator (this I have)
thanks in advance