/ lang / private
PRIVATE
This keyword declares the accessibility of a global method , variable or property.

A private variable, method or property cannot be used outside of the class code.

### Examples

    ' Gambas class file

    PRIVATE $hConn AS Connection ' only code inside this class can access $hConn

    PUBLIC SUB btnConnect_Click()

      DIM sName AS String
    ...

### See also

Variable Declaration Method Declaration