Explain to what extent the private reserved word hides the


Problem

1. Instance variables are "hidden" by declaring them as private, but they aren't hidden very well at all. Anyone can read the class declaration. Explain to what extent the private reserved word hides the private implementation of a class.

2. You can read the item Count instance variable of the Cash Register class with the get ­Count accessor method. Should there be a set Count mutator method to change it? Explain why or why not.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Explain to what extent the private reserved word hides the
Reference No:- TGS02630247

Expected delivery within 24 Hours