Valid 1z0-808 Dumps shared by ExamDiscuss.com for Helping Passing 1z0-808 Exam! ExamDiscuss.com now offer the newest 1z0-808 exam dumps, the ExamDiscuss.com 1z0-808 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com 1z0-808 dumps with Test Engine here:
Given: public class ComputeSum { public int x; public int y; public int sum; public ComputeSum (int nx, int ny) { x = nx; y =ny; updateSum(); } public void setX(int nx) { x = nx; updateSum();} public void setY(int ny) { x = ny; updateSum();} void updateSum() { sum = x + y;} } This class needs to protect an invariant on the sum field. Which three members must have the private access modifier to ensure that this invariant is maintained?
Correct Answer: C,E,F
The sum field and the two methods (setX and SetY) that updates the sum field.