Linked Lists and Inheritance
hi can any of you very intelligent people help me?. I am trying to make a singly linked list of class instances. I can do this with one class definition. However I have an abstract base class, four derived classes and two doubly derived classes. Instances of each of these must all be included on the same list!!. I have already written code to define each class along with the functions associated with each class. This is in 14 different files so I have not posted it here. After that... I am stuck. If anyone could help me , or knows any tutorials dealing with linked lists and inheritance. I have tried three books and they don't mention it at all!. My computer teacher at school was also very vague when I asked him...... This makes me think it must be a very hard thing to explain or understand. Do I need to use separate linked lists for each derived class(I tried this and it works, but is massively complicated!!). Any code, links, help at all would be brill!, but I know it is very difficult so I won't expect miracles :O)