Oct. 18, 2017
5:39 a.m.
Good point - thank you Sent from my Commodore 64
On 18 Oct 2017, at 4:36 pm, Prof. Andrew P. Black <black@cs.pdx.edu> wrote:
On 18 Oct 2017, at 08:32 , James Ladd <ladd.james@gmail.com> wrote:
What if accessors were generated but not mutators?
The point is that, once a method exists, there is not way to restrict who can send a message that will execute it. So if one were forces to generate a reader method, or a writer method, just to give access to a subclass, then every object n the system would also gain access.
Andrew