# On private keyword

**URL:** <https://discourse.processing.org/t/on-private-keyword/15139>\
**Category:** Beginners\
**Created:** [November 2, 2019, 5:39am UTC](https://discourse.processing.org/t/on-private-keyword/15139 "2019-11-02T05:39:48Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [November 2, 2019, 9:09am UTC](https://discourse.processing.org/t/on-private-keyword/15139/2 "2019-11-02T09:09:11Z")

</div>

> [@plux](#):
>
> … I’m trying to access a `private` field _age_ from outside its class Parent?

> **[private / Reference](https://processing.org/reference/private.html)**
>
> This keyword is used to disallow other classes access to the fields and methods within a class. The private keyword is used before a field or method that you want to be available only within th…

- All members inside “.pde” files belong to (are nested inside) a single PApplet subclass! 😮
- Nothing is actually `private` among them. 🕵️‍♂️
- However, access restriction would still apply when an access attempt is made from within a “.java” file to a “.pde” 1; and vice-versa. ⛔

---

_[View the full topic](https://discourse.processing.org/t/on-private-keyword/15139)._
