The duplicate function is a friend of CRectangle. From within that function we have been able to access the
members width and height of different objects of type CRectangle, which are private members. Notice that
neither in the declaration of duplicate() nor in its later use in main() have we considered duplicate a member
of class CRectangle. It isn't! It simply has access to its private and protected members without being a member.