Don't create a method for each count. If you can ID each object created in a generic fashion, then you can use a hash/map to keep track. Then when you want to know the counts, just feed it to a function taht can also figure out the ID w/o instanciation.
In reply to Re: Creating Common Constructor
by exussum0
in thread Creating Common Constructor
by DeadPoet
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |