Static help

If I have a class with an ID and a static ID, which increments in the constructor of each object, How can I create an function that can get any object's values based on its ID?
By storing the objects in a container and giving the container that particular function you want.
Topic archived. No new replies allowed.