Objectica
Symbol
Getting Started
Tutorials »
|
New
Class
See Also »
|
Overview
Reference Guide
More About »
$ObjectNumber
$ObjectNumber
is an internal counter used to control the uniqueness of an object. Use
New
to create an object from a class template.
EXAMPLES
CLOSE ALL
Basic Examples
(1)
This loads the package.
In[1]:=
We first define a small class hierarchy.
In[2]:=
The objects get successive numbers, independent of the class they were created from. The number is always available.
In[3]:=
Out[3]=
Out[3]=
Out[3]=
Out[3]=
SEE ALSO
New
Class
$ObjectNumber::objects
$ObjectNumber::nonnegative
$ObjectNumber::clear
TUTORIALS
Getting
Started
RELATED LINKS
Objectica
Symbols and Numbers (makers of Objectica)
MORE ABOUT
Overview
Reference Guide