Suppose we provided an accessor get squares () for the Domineering class. A method in another class, given an instance game, might do this: game .get Squares()[2][5] = true; Discuss whether this violates encapsulation.
Discuss whether it makes sense for an interface to implement another interface. How about a class implementing another class?
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here