

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Lab Task 9.1 Create a class Distance which has a data member kilometers initialized by constructor. Define a friend function of this class that will convert kilometers into meters. Write main function to test this class. #include
Lab Task 9.2 Create two classes Distance1 and Distance2 that have data member kilometers initialized by their constructors. Define a friend function of both these classes that will add both these kilometers. Convert kilometers into meters and display the result. Write main function to test this class. #include