Question: In Interface: friend bool lesser ( const House& home 1 , const House& home 2 ) ; In Implementation: bool lesser ( const House& home

In Interface:
friend bool lesser(const House& home1, const House& home2);
In Implementation:
bool lesser(const House& home1, const House& home2)
{
return home1.price > home2.price;
}
Convert the above method into one that overloads operator<. Write both the declaration and definition.

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 Programming Questions!