$ObjectNumber

$ObjectNumber
is an internal counter used to control the uniqueness of an object. Use New to create an object from a class template.
This loads the package.
In[1]:=
Click for copyable input
We first define a small class hierarchy.
In[2]:=
Click for copyable input
The objects get successive numbers, independent of the class they were created from. The number is always available.
In[3]:=
Click for copyable input
Out[3]=
Out[3]=
Out[3]=
Out[3]=