<div dir="ltr">Has anyone looked at this solution?<div><br></div><div><a href="http://stackoverflow.com/a/8703764">http://stackoverflow.com/a/8703764</a><br></div><div><br></div><div>One flaw is that users who instantiate the base class directly could get access to these protected values if they knew what they were doing, but otherwise it seems good, and doesn't add any members that are directly visible on the objects.</div>
</div>