Suppose we provided an accessor getSquares() for the Domineering class. A method in another class,..

Suppose we
provided an accessor getSquares() for the Domineering class. A method in
another class, given an instance game, might do this:

Don't use plagiarized sources. Get Your Custom Essay on
Suppose we provided an accessor getSquares() for the Domineering class. A method in another class,..
Just from $13/Page
Order Essay

Discuss
whether this violates encapsulation.

Leave a Reply

Your email address will not be published.

*

*

*