tianlunlee / Doodads

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

In Class exercise

  1. Fork and clone down this respository
  2. Open the Doodads folder in Sublime, or open Doodads.pde in Processing.
  3. Run the program. You should get an error message that says The field Doodad.myNum is not visible because the client code in setup() is trying to access a private member variable.
  4. 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
  1. The finished program should print Sum is 5.859870195388794
  2. Show your teacher the finished program.

About


Languages

Language:Java 53.2%Language:Processing 46.8%