Public

Public.member
marks a member in a class that may be used from everywhere.
This loads the package.
In[1]:=
Click for copyable input
All members of a class that are not explicitly declared as Protected or Private are Public. Themodifier Public therefore is only needed to clarify that a member is public.
In[2]:=
Click for copyable input
The accessibility for both methods is identical.
In[3]:=
Click for copyable input
Out[3]=
Out[3]=
Both methods can be accessed from everywhere, here from outside the class.
In[4]:=
Click for copyable input
Out[4]=
Out[4]=
In contrast, the same accessibility is allowed.
In[6]:=
Click for copyable input