Question: WRITE IN C++ Given a class Route with a numeric data member named distance , write a prototype and a friend function definition (not inline)
WRITE IN C++
Given a class Route with a numeric data member named distance , write a prototype and a friend function definition (not inline) for a less- than comparison operator that compares two Route objects based on this data member.
Write the prototype as a single statement.
Write the function definition separately, under the prototype statement.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
