Need a little help understanding objects

  • (3 Pages)
  • +
  • 1
  • 2
  • 3

30 Replies - 3848 Views - Last Post: 12 March 2013 - 09:56 PM

#31 BobRodes  Icon User is offline

  • Your Friendly Local Curmudgeon
  • member icon

Reputation: 574
  • View blog
  • Posts: 2,989
  • Joined: 19-May 09

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.

This post has been edited by BobRodes: 12 March 2013 - 09:57 PM

Was This Post Helpful? 0
  • +
  • -

  • (3 Pages)
  • +
  • 1
  • 2
  • 3