Matthew MacDonald
1 min readFeb 27, 2020

--

Agreed — if you have a setter everything though go through the setter, and only the setter needs to access the private field.

--

--

Matthew MacDonald
Matthew MacDonald

Written by Matthew MacDonald

Teacher, coder, long-ago Microsoft MVP. Author of heavy books. Join Young Coder for a creative take on science and technology. Queries: matthew@prosetech.com

No responses yet