Question about code re-use (Template or Inheritance)
I wrote a link list class and now besides the type of the cur object it can handle now. 

I'm interested in reusing the code so it can handle another object. 

I was tihnking something maybe like this? Right now my current classes are truck and events and I have a linklist class. By using the linklist class it's right now setup for events, but trucks will have the same kinda behavior in the linklist it will just be a few minors changes to the list. Instead of just copying it and reusing it like that. Could I setup both Truck and Events to be a Item? so Item is the base class and Truck and Events inherit from Item. SO that then I can pass in the truck and event into the list as items, would this work?

Or templatize the list?
Question about code re-use (Template or Inheritance)
===

I wrote a link list class and now besides the type of the cur object it can handle now. 

I'm interested in reusing the code so it can handle another object. 

I was tihnking something maybe like this? Right now my current classes are truck and events and I have a linklist class. By using the linklist class it's right now setup for events, but trucks will have the same kinda behavior in the linklist it will just be a few minors changes to the list. Instead of just copying it and reusing it like that. Could I setup both Truck and Events to be a Item? so Item is the base class and Truck and Events inherit from Item. SO that then I can pass in the truck and event into the list as items, would this work?

Or templatize the list?