Declare a method or attribute as private.
Arguments
- .attr
The function or attribute to be declared as private.
Details
The private
function is used to declare a method or attribute as private
in a class definition.
Private methods and attributes are not accessible from outside the class.