Modification of the
SimplePicture class
This program modifies the
addMessage
method of the
SimplePicture
class
- to cause
it to use a color variable named messageColor
- to set the color of the
text.
The modification also
- declares and initializes the private instance variable named messageColor.
The
SimplePicture
class was also modified
- to include a setMessageColor
method
- that can be used to set the color value
- stored in the
variable named messageColor.