Exporting Properties

no-email (Tim Macdonald), Tim Macdonald
Thu, 19 Jan 2023 00:00:00 +0000

With an accessor and a reference, it is possible to export a private property and manipulate it from the outside of the object.
This is not recommended, as it exposes data that is supposed to be protected by its visibility.