Question: Define a class named Window with the following members: An int member variable named width An int member variable named height A constructor that accepts

Define a class named Window with the following members:
An int member variable named width
An int member variable named height
A constructor that accepts two int arguments. The first argument should be assigned to width and the second argument should be assigned to height.
The Window class should declare the areSameSize function, described below, as a friend.
Outside of the Window class, write a function named areSameSize that accepts two Window objects as arguments, and returns a bool indicating whether the two Window objects are the same size. Two Window objects are the same size if their widths and heights match.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!