Class keeping track of own members vs not.
Posted on 2009-07-10
My apologies - the topic title isn't exactly the best way to summarise this question, but I'm afraid it's the best I can come up with. What I'm curious about are the advantages and disadvantages to having a static class that allows the creation of members (stored within a static array/vector within the class) as to having a normal class that can be instantiated with whatever creating the object looking after the object?
Obviously one advantage is if the static class keeps track of its own members then there's no reason to pass members as there is with an instantiated class.