Page 1197 - AP Computer Science A, 7th edition
P. 1197

3. (D) The value of the boolean instance variable isUnionMember must be changed to the opposite of what it currently is. Segments I and II both achieve this. Note that !true has a value of false and !false a value of true. Segment III fails to do what’s required if the current value of isUnionMember is false.


































































































   1195   1196   1197   1198   1199