how can I get the total number of instances of a class currently active in code?

I want to write the code as a part of the constructor.

1 Answer

  • 1 decade ago
    Favorite Answer

    If I remember correctly, you do something like..make an increment in the constructor..but don't make it static? Something like that MIGHT work, though I'm not 100% sure.

Still have questions? Get your answers by asking now.