Define the following Window class : – integer data members, width and height – a constructor that accepts two integer parameters (width followed by height) and uses them to initialize the data members – a friend function, areSameSize, that accepts two Window objects and returns a boolean indicating if they are the same size. Two windows are the same size if the widths and heights match.

Define the following Window class : – integer data members, width and height – a constructor that accepts two integer parameters (width followed by height) and uses them to initialize the data members – a friend function, areSameSize, that accepts two Window objects  and returns a boolean indicating if they are the same size. Two windows are the same size if the widths and heights match.

LANGUAGE: C++

CHALLENGE:

Define the following Window class : – integer data members, width and height – a constructor that accepts two integer parameters (width followed by height) and uses them to initialize the data members – a friend function, areSameSize, that accepts two Window objects and returns a boolean indicating if they are the same size. Two windows are the same size if the widths and heights match.

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days – Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level