Prev Question
Next Question

Given: 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?

A.
The setY ( ) method

B.
The x field

C.
The y field

D.
The sum field

E.
The ComputerSum ( ) constructor

F.
The setX ( ) method

Prev Question
Next Question

Leave a Reply

Your email address will not be published. Required fields are marked *