Original Post
Lets say I have a base class: soldier, and inherited from it: scout, and private. Is there a way that I could hold a vector of scouts and a vector of privates and update eachone with it's own functions and everything, but also hold a vector of all the soldiers to do common things like rendering(with a virtual function)? I know that I could make three seperate vectors - one for each task- but that would be messy and sortof defeat the purpose of the infheritance. what is the common "elegant(but simple)" way to do this? -note: I used the vectors just for an example, probably there is a better way. It's sortof hard for me to express this question, what I'm basiclly asking is how do you utilize the fact that with the base class you can access all the inherited children? Thanks.