Method (computer programming)
The public identifier means that this method is publicly accessible, that anyone is allowed to use this. In comparison, a method may be private or sometimes protected, the latter of which means only specific parts of the same program are allowed to use this method, and never a human user. A privately accessible method only allows the object it belongs to, to edit it. This is used to give data security.