Question: Create two classes DM and DB to store the value of distances. DM stores distances in meter and centimeters and DB in feet and inches
Create two classes DM and DB to store the value of distances. DM stores distances in meter and centimeters and DB in feet and inches write a program that can read values for the class objects and add one object of DM with an other object of DB
Hint: Use friend function
write complete program in c++
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
