Mary Ann Hainsworth, started working as a Resource Conservationist under the ACES Program in January of 2011 after retiring from NRCS. She provides assistance for the Wellington Field Office with everything from staking in the field to conservation contract support.
It is convenient to overload commonly used functions to work with objects of your class. For example, suppose that a class defines a property that stores data that you often graph. The MyData bar method has the same name as the MATLAB bar function. However, the MyData bar method requires a MyData object as input.
Output streams use the insertion () operator for standard types. You can also overload the operator for your own classes. The write function example showed the use of a Date structure. A date is an ideal candidate for a C++ class in which the data members (month, day, and year) are hidden from view.An output stream is the logical destination for displaying such a structure.ou can also overload the operator for your own classes. The write function example showed the use of a Date structure. A date is an ideal candidate for a C++ class in which the data members (month, day, and year) are hidden from view.