February 2017
Beginner
1056 pages
28h 57m
English
The Moving Finger writes; and, having writ,
Moves on; nor all your Piety nor Wit
Shall lure it back to cancel half a Line.
Nor all your tears wash out a word of it.
—OMAR KHAYYAM, The Ruba'iyat (Fitzgerald Translation)
In this section, we present some additional techniques for working with arrays. In particular, we discuss using an array variable as an instance variable in a class. We begin with a programming example that illustrates some basic techniques.
One way to use an array for a special purpose is to make the array an instance variable of a class. The array is accessed only through the class methods, and so you can add any checks and automatic processing ...
Read now
Unlock full access