Skip to content

APCSLowell/Doodads

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

In Class exercise

  1. Open Processing and copy the code from Doodads.pde into Processing.
  2. Save your programs as "DoodadsProgram" or just "Doodads" but NOT "Doodad."
  3. Open a new tab in processing and name the file "Doodad.java." Copy in the code for the Doodad class.
  4. 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.
  5. 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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published