411 REFERENCE · Wikibooks
The Science of Programming/SwayPresentations/Objects/PublicAndPrivateComponents
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Public and Private Components
Every component in a Sway Object is public:
A belief that programming is not a adversarial exercise
Simplifies the language (syntactically speaking)
However, it is possible, with a little bit of work, to
make a component private.
One method in Sway uses simple scoping rules
(see the Class and Object Components page.
The other uses operator overloading.
Next
Previous
Top