package pack3; /* Author: James Tam Version: March 27, 2017 Original version: March 24, 2003 This class is defined as being public so that instances can be instantiated anywhere in this program. */ public class OpenFoo { private boolean bool; public OpenFoo() { bool = true; } public void manipulateFoo() { ClosedFoo cf = new ClosedFoo (); System.out.println(cf); } public boolean getBool() { return bool; } public void setBool(boolean newValue) { bool = newValue; } public String toString() { String s = new String (); s = s + bool; return(s); } }