The code for 'step 1' of the encapsulation example in instalment 93 of the Programming by Stealth series. The data is encapsulated, but not the functions.

This page is intended to be interacted with via the JavaScript console.

Plain Text Output

HTML Output