This document defines two classes, Rectangle and Square, and a function equal() that compares whether a Rectangle and Square object have equal areas. The Rectangle class stores width and height integers, while the Square class stores a side length integer r. Both classes declare equal() as a friend function to allow it access to their private members. The main() function creates Rectangle and Square objects and calls equal() to compare their areas and output "Equal" or "Unequal".