Making the Basic Classes Serializable
The real estate application references the
residential and
rural_land objects as pointers to the
real_property base class. As stated in
Serialization Requirements to make these classes serializable as pointers you must:
Declare the
streamContents() function and the global operators for streaming pointers by putting macros in the header file for each class.
Define the
streamContents() function and the global operators for streaming pointers by putting macros in the source file for each class.