<div dir="ltr">This is just a regular object-oriented programming. The point of providing accessors is to hide the implementation details from other parts of the program. Inside the class, you can access the member variables (if you can't access member variables in the same class, there's no way to access them.)</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 17, 2017 at 3:08 AM, George Rimar <span dir="ltr"><<a href="mailto:grimar@accesssoftek.com" target="_blank">grimar@accesssoftek.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif"><span class="">
<p><span style="color:rgb(33,33,33);font-size:12pt">> but in this case we have a fairly complicated `setDot` function, and we always set Dot via that function. So getDot works as a >guard to protect the direct access to that variable.</span><br>
</p>
</span><div style="color:rgb(33,33,33)">
<div>
<div class="gmail_extra"><br>
<div class="gmail_quote">We don't always use setDot(), If we would do, I would not remove setter.<br>
</div>
<div class="gmail_quote">We have at least 4 direct assignemt to Dot in LinkerScriptBase​. May be we should change all asignents to go through<br>
</div>
<div class="gmail_quote">setDot() ?<span class="HOEnZb"><font color="#888888"><br>
</font></span></div><span class="HOEnZb"><font color="#888888">
<div class="gmail_quote"><br>
</div>
<div class="gmail_quote">George.<br>
</div>
</font></span></div>
</div>
</div>
</div>

</blockquote></div><br></div>