package pack3; /* Author: James Tam Version: March 27, 2017 Original version: March 24, 2003 Since this class definition is not preceded by the public modifier it has the default level of access, which is package which means that instances of the class can only be instantiated by members of package "pack3". */ class ClosedFoo { private boolean bool; public ClosedFoo () { bool = false; } public boolean getBool() { return bool; } public void setBool(boolean newValue) { bool = newValue; } public String toString() { String s = new String(); s = s + bool; return(s); } }