I'm at my wits end! <BR><BR>Background:<BR>I have a CD class with private data and public methods, that works fine.<BR>I have declared as friend the istream and ostream objects to allow <BR>cin >> ...
It's not good enough to simply write code that works. That code must be easily maintained, enhanced and debugged when problems happen. One of the reasons why object-oriented programming is so popular ...
If you are fortunate enough to be using JDK 7, the newly available Objects class is the obvious (at least to me) choice for implementing the “common” Java object ...