- Fork and clone down this respository
- Open the Doodads folder in Sublime, or open Doodads.pde in Processing.
- Run the program. You should get an error message that says
The field Doodad.myNum is not visiblebecause the client code insetup()is trying to access aprivatemember variable. - Fix the program by
- finishing the two setter and getter functions in
Doodad.java - rewriting the client code in
setup()to use the two setter and getter functions
- The finished program should print
Sum is 5.859870195388794 - Show your teacher the finished program.