home—info—lects—labs—exams—hws
tutor/PIs—breeze (snow day)
Object120 + its docs—java.lang docs—java.util docs
lect12a
exam02-review
and, motivate: public,private
-
Go over exam02
-
Next phase of the course: bigger, better, faster, more!
(Topics: more with arrays; objects-containing objects; polymorphism)
-
Let's have our real code in one file,
and our tester-code in a different file *in same directory*
Really, we also had other functions to *help* with testing;
let's put those into class TestUtils.
-
New policy:
-
add the visibility-modifier "public" in front of all methods, and
-
add the visibility-modifier "private" in front of all fields.
Next week we'll have more than one class involved in a project,
and so it'll at least be demonstrable that these modifiers *do* something.
arrays
The before files:
ArraysDemo.java,
along with
TestArraysDemo.java,
and the general-purpose
TestUtils.java.
-
Review: the rainfall example (declaring, init'ing, processing).
home—info—lects—labs—exams—hws
tutor/PIs—breeze (snow day)
Object120 + its docs—java.lang docs—java.util docs