This post has been edited by BobRodes: 12 March 2013 - 09:57 PM
30 Replies - 4503 Views - Last Post: 12 March 2013 - 09:56 PM
Re: Need a little help understanding objects
Posted 12 March 2013 - 09:56 PM
If you apply my two interfaces idea to your example, a derived CarInternals class would have the mutator method, and the accessor method and private variable would be in the base class. That would keep Joe Random Programmer who doesn't read his class diagrams at bay to some extent, if he weren't too terminally determined to screw the pooch.