Pergunta de entrevista da empresa GE

they asked what is instance counting and how to do it?

Resposta da entrevista

Sigiloso

4 de dez. de 2013

it is to count how many instances were created of some class, and it can be done by using private constructor and static get instance function that count how many times it was called.