Activity of Aug. 25, 2010

Post date: Aug 25, 2010 4:31:12 AM

We will soon be finished with the aging bicycle example. The class needs to guard its instance variables by making them private and then controlling access to them through getter and setter methods. So that instance variables are initialized correctly when the instance comes to life, a constructor is required. We'll add these to the bicycle example and afterwards the class will look much more similar to the version used in Project 3 and consequently to your own Project 3 classes.

Check back after class for today's review questions.