Does a client method have a way to modify a private variable?,”No instance field of a class can be changed by a client method if it is declared private.If an instance field is specified as private, it cannot be directly accesed

Average Rating
0 out of 5 stars. 0 votes.

Does a client method have a way to modify a private variable?,”No instance field of a class can be changed by a client method if it is declared private.If an instance field is specified as private, it cannot be directly accesed

but it can be modified if the class provides a public mutator method.source: ICE”