Some hints that will make your classes more acceptable in well-mannered OOP circles: 1. Always keep data private. This is first and foremost; doing anything else violates encapsulation. You may need to write an accessor or mutator method occasionally...

Markdown supported · ⌘↵ to post
No responses yet.