Skip to contents

Declare a method or attribute as private.

Usage

private(.attr)

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.