   Polymorphism for datastructures
  hii am just wondering if it s a good solution too write some base classes for linked lists and other ways of storing data and then simply derive the datastructures from these baseclasses,this would spare a lot of work and i wouldn t have to rewrite tons of code just to store it as a linked listdoes this reduce the speed of the program and if so a lot or is that a minor issue? 
  Are you using C++? If so, templates is the answer. Templates enable you to write 1 base class/function for a special type token. When the templated code is compiled, the compiler replacees the type token with actual variables. This is how much of the STL work aswell(vector, map, etc.).Here is a tutorial on www.gametutorials.com about templates.http://www.gametutorials.com/Tutorials/c++/Cpp_Pg6.htmTake the 2nd or 3rd tutorial, called "Templates".Toolmaker   -Earth is 98% full. Please delete anybody you can. ;  hey thx for pointing my to templates, i haven t worked that much with them yet, so i didn t think about them ;  read up on the STL at sgi.com/tech/stl