create two classes named asyourandminewith two data members named asdistance and time. input the values of both classesdistance and time. define a friend class who calculate the total distance and total time of both classes and then convert into speed and also display the data which has more time and more distance.USE FRIEND FUNCTION
C++
Please do it correctly
Thank you very much.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here