Dot

Dot
accesses class members defined by means of Class. Within this context, it has attribute HoldRest. $.x.y generates the symbol xy. Dot yields the ordinary Dot product, if its first parameter is neither $, New or a class nor an object generated by means of Class.
  • The builtin behavior of Dot is not affected.
This loads the package.
In[1]:=
Click for copyable input
The dot operator is used to create an object, connect elements of a class with modifiers like Private, and to access fields and methods of a class. Let us first generate a class.
In[2]:=
Click for copyable input
Objects are generated by applying Dot to New and the class' constructor. The output is specially formatted.
In[3]:=
Click for copyable input
Out[3]=
Members of the class are accessed by means of the dot operator.
In[4]:=
Click for copyable input
Out[4]=
In[5]:=
Click for copyable input
Out[5]=
The normal dot product is not affected.
In[6]:=
Click for copyable input
Out[6]=