Content deleted Content added
inline references |
→Object counter: Changed the wording to how I felt was clearer. Wanted "but how does it keep the counts separate?" answered ASAP, but though the first sentence was too soon. |
||
Line 88:
</source>
Each time an object of class <code>X</code> is created, the constructor of <code>counter<X></code> is called, incrementing both the created and alive count. Each time an object of class <code>X</code> is destroyed, the alive count is decremented.
==In other languages==
|