Support any number of object types for pooling

Jun 12 2013 7:41 PM

I am asked to answer the below question as part of a assessment in a hiring process.   I have no problem with object return, hence if one could point me in the right direction with class that supports any number of object types I'll be a happy fella.

You are to develop a class that can be used to pool memory by instantiating objects outside of time critical areas and allow consumers to "borrow" and "return" the objects.  There should be one implementation of this new class that will support any number of object types for pooling.


Answers (1)