Keyword

# Private

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

## Description

Used to indicate the most restrictive scope for a members of classes and modules. <span class="title-ref">Private</span> members can only be accessed from within the class or module.

## Notes

You do not directly use this keyword in your Xojo code. You set scope in the Inspector for the item.

## Compatibility

|                       |     |
|-----------------------|-----|
| **Project Types**     | All |
| **Operating Systems** | All |

<div class="seealso">

`Public</api/language/public>`, `Protected</api/language/protected>` keywords

</div>
